[git] git: fatal: Could not read from remote repository

I was getting this error while trying to push code to my personal git from work - defaults point to work git. So I followed these steps:

  1. Went to my personal git account and created repo with default settings
  2. On terminal, git remote add origin [email protected]:/.git
  3. git push --set-upstream origin master, ensuring that origin is upstream and the next commits can be made using git push only.

For some reason, no other way worked for me. Hope this helps someone working with 2 or more git accounts.