This repository has the finality to show :
-
How config your GitHub account
-
How Config SSH keys and hhtps for Git
-
How Use Git Terminal
-
How Config Git Terminal
To use Git and GitHub, you must have already created a GitHub account.
If you donβt, you can follow this tutorial:
-
Step 1: Go to GitHub
-
Step 2: Click on Sign up
-
Step 2.1: Complete the registration process and click on Continue
Following these steps, you have successfully created your GitHub account!
Before making commits, you need to tell Git who you are. This is important so that your commits are properly labeled.
git config --global user.name "Your Name"git config --global user.email "your_email@example.com"git config --global --listYou should see something like:
user.name=Your Name
user.email=your_email@example.com
To connect your local Git environment to GitHub securely, you can use either HTTPS or SSH. SSH is often preferred for its security and ease once set up.
-
Check for existing SSH keys
Open your git terminal and run:
ls -al ~/.sshIf you see files like
id_rsa.pub, you already have an SSH key. -
Generate a new SSH key
If is your first using git run this :
ssh-keygen -t ed25519 -C "your_email@example.com"Also You can use a GitHub email address to keep your personal email private.
-
Add the SSH key to the ssh-agent
eval "$(ssh-agent -s)" ssh-add ~/.ssh/id_ed25519
-
Add the SSH key to your GitHub account
-
Copy the key to your clipboard:
cat ~/.ssh/id_ed25519.pubThen copy the output.
-
Go to your GitHub profile and enter to :
Settings > SSH and GPG Keys > New SSH Key .
Paste the copied key, add a title, and save.
-
Test your SSH connection :
ssh -T git@github.com
If is successfully you should see a message like
Hi your-username! You've successfully authenticated.
-
Dont forget to enter to folder exercise to practice and improve your dev skills :D