Green YGreck Guides FR
🍎 macOSIntermediate⏱ 15 min5 steps

Set up Git and an SSH key

Ready to clone and publish code in a few minutes.

  1. Identify yourself to Git:
    git config --global user.name "Votre Nom"
    git config --global user.email "vous@exemple.fr"
  2. Create a modern key:
    ssh-keygen -t ed25519 -C "vous@exemple.fr"
  3. Add it to the agent and the keychain:
    eval "$(ssh-agent -s)"
    ssh-add --apple-use-keychain ~/.ssh/id_ed25519
  4. Copy the public key to paste it into your Git host's settings:
    pbcopy < ~/.ssh/id_ed25519.pub
  5. Test the connection:
    ssh -T git@github.com