Youtube Video: https://youtu.be/kgrWQ2xV_Gc
ssh-keygen -t ed25519 -C "[email protected]"
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/id_ed25519
copy the SSH public key to your clipboard:
cat ~/.ssh/id_ed25519.pub
Go to GitHub Settings > SSH and GPG keys, click "New SSH key," and paste your key.
ssh -T [email protected]
Go to the folder of your repo:
git remote set-url origin [email protected]:GITHUB_USERNAME/REPO_NAME.git
git pull origin main