So, it turned out that i had multiple problems with setting up my account.
- it was picking the wrong origin which was identified by Shaun and Marina
So, i removed the wrong one and added the correct one (georign)
- I had added a readme file to the default repository it was giving me error:
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: ‘git pull …’) before pushing again.
hint: See the ‘Note about fast-forwards’ in ‘git push –help’ for details.
so i tried a pull before pushing and it turned out i had to –allow-unrelated-histories
git pull georigin master --allow-unrelated-histories
and then
git push georigin master
Thats it!!! (phew)
solved git multiple accounts and repository problems