Troubleshooting git push - it asks for a user/pass
What do you mean by previous repo? Check the url of the origin from the previous repo's .git/config
file. If you had cloned using http, it will ask for user/pass.
this occurs because you did
git clone https://github.com/username/repo
instead of
git clone [email protected]:username/repo.git
Try the following:
git remote set-url origin [your git url, such as [email protected]:.../project.git]