Git
Git is a version control system — it tracks changes in your code and lets you collaborate safely.
To install:
brew install gitThen verify if it installed correctly:
git --versionSet Identity
Set your name and email so Git knows who is making changes. Use the same name and email as your GitHub account so your commits are properly linked.
git config --global user.name "Your Name"
git config --global user.email "your@email.com"These will get added to your .gitconfig file.
SSH Keys
You can generate SSH keys for your machine by running:
ssh-keygenThen press Enter three times.
Navigate to:
cd ~/.sshType ls -a and you should your private key and public key

Then type cat id_ed25519.pub to print your public key, so you can copy-paste it to GitHub/Bitbucket.
Last updated