Youtube Video: https://youtu.be/kgrWQ2xV_Gc
ssh-keygen -t ed25519 -C "your_email@example.com"
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 git@github.com
Go to the folder of your repo:
git remote set-url origin git@github.com:GITHUB_USERNAME/REPO_NAME.git
git pull origin main