If you already have a git account added to your local system and are facing an issue with pushing your changes to the newly created git account.
Just Follow the below steps and wallah we are done
Open Git Bash
1.) Navigate to the ssh folder on your system:
For Windows
cd C:\Users\username\.ssh
open the file id_rsa
For Mac
find . -name 'id-rsa*' -print
copy the data inside the file.
2.) Go to GitHub SSH Keys
- Click on New SSH Key Button
- Add a Title
- Paste the Key
- Click Add SSH KEY Button
Congratulations: Now you can create a new repo or push the existing repo as usual from your GitBash.
Happy Hacking ๐
ย