- Generate SSH key
ssh-keygen -t ed25519 -C "tanvirdotzaman@gmail.com"
- Copy the key
cat ~/.ssh/id_ed25519.pub
- Add the key to your github account
- It’s under profile/settings
- Change github url to SSH protocol, repo url can be found from the repo’s page
git remote set-url origin git@github.com:mtanviru/ai.git
- Push
git push -u origin main
Leave a comment