Skip to content

Git configuration

glushchenko edited this page Apr 2, 2023 · 1 revision

How to setup new remote git repository and push data

macOS

  1. Generate ssh key:

Open Terminal.app and generate private and public keys ssh-keygen -t ed25519 -f ~/Downloads/fsnotes -N '' fsnotes and fsnotes.pub

  1. Create new repository https://github.com/new.
  2. Open repository settings and add key https://github.com/username/test-repository/settings.

3.1. Copy fsnotes.pub content and paste in Deploy keys -> Add deploy keys.
3.2. Check "Allow write access".

  1. Setup app.

Open projects settings, i.e right click on iCloud Drive -> Show Options:

92adbb44-880d-4067-a1df-c8f4b9b5adc2

4.1. Select private key (fsnotes)
4.2. Copy repository url and paste to origin field [email protected]:username/test-repository.git.

2433edd8-e4b2-4f99-85a0-d62ccfc7626a
  1. Press Clone/push button.
  2. Verify https://github.com/username/test-repository/