Github Config: How To Generate An SSH Key and Add It To Github
Github Config: How To Generate An SSH Key and Add It To Github
Git - Downloads
https://git-scm.com/downloads
Prerequisites
Before starting, you should have:
A Github account
Github Config 1
3. You will be prompted to enter a file name to save the key pair. Press Enter to accept
the default file name and location.
4. You will be prompted to enter a passphrase for the key pair. Choose a strong
passphrase and remember it.
5. Copy the contents of your public key file into the "Key" field. You can do this by
typing the following command:
cat ~/.ssh/id_rsa.pub
This will print the contents of your public key file to the terminal. Select and copy the
entire output.
6. Paste the contents of your public key into the "Key" field on Github.
ssh -T git@github.com
Github Config 2
3. If the connection is successful, you should see a message that says "Hi username!
You've successfully authenticated, but Github does not provide shell access."
Congratulations! You have now generated an SSH key and added it to Github using
RSA.
git branch : Shows the current branch and lists all branches.
Prerequisites
Before starting, you should have:
A Github account
Github Config 3
A code repository that you want to deposit on Github
3. Type the following command to clone the repository to your local machine:
git add .
This command will add all the files in the current directory to the repository.
Github Config 4
Replace "Your commit message here" with a short description of the changes you
made.
This command will push your changes to the master branch of the repository on
Github.
Congratulations! You have now made your first code deposit on Github.
git branch : Shows the current branch and lists all branches.
Github Config 5
git merge : Merges changes from one branch into another.
By @Freddy AGBONA
Site en maintenance
Ce site subit en ce moment des modifications majeures. Il sera disponible bientôt !
https://fredthedev.com
Github Config 6