Pushing changes to github repo

  1. Generate SSH key
    • ssh-keygen -t ed25519 -C "tanvirdotzaman@gmail.com"
  2. Copy the key
    • cat ~/.ssh/id_ed25519.pub
  3. Add the key to your github account
    • It’s under profile/settings
  4. 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
  5. Push
    • git push -u origin main

Leave a comment