WEEK 1 ASSIGNMENT.
Source: Dev.to
Git
Git is a version control system used for code collaboration, tracking code changes and who made them.
Common Git commands
git --version
Checks whether Git is installed and shows the installed version.
git config --user.name "yourname"
Sets the author’s name linked to commits.
git config --user.email "youremail"
Sets the email address linked to commits.
git config --list
Shows all Git configuration settings currently applied to the system.
ls ~/.ssh
Lists the contents of the .ssh directory in the home folder.
ssh-keygen -t ed25519 -C "youremail"
Generates a private and public SSH key pair.
eval "$(ssh-agent -s)"
Starts the SSH agent and sets the necessary environment variables in the current terminal session.
ssh-add ~/.ssh/id_ed25519
Adds the private key to the SSH agent so Git can use it automatically without asking for the passphrase each time.
git config --unset
Removes a specific Git configuration setting.