Setting up Git

Setting up Git

In this article I'll take you step-by-step through setting up your Github using SSH.

26 September 20243 min read

Basic Git configuration

Add your user information to ~/.gitconfig

1[user]
2    name = VotreNom
3    email = VotreEmail@example.com
4

Generating and adding SSH key

  • Create an SSH key :
1ssh-keygen -t ed25519 -C "votre_email@example.com"
  • Launch the SSH agent :
1eval "$(ssh-agent -s)"
  • Add the generated key :
1ssh-add ~/.ssh/id_ed25519
  • Display to copy the public key :
1cat ~/.ssh/id_ed25519.pub
  • You will need to paste it into your GIthub profile: Settings > SSH and GPG keys
Github Settings

Click on the New SSH KEY button

  • All that's left is to give it a name and paste your key
Paste SSH key


I'm a web developer with a passion for creating modern, optimised solutions. Take a look at my projects or follow me to find out more about my work!