Git push requires username and password
You want to push a new project to github, but it asks for your username and password each time.
First, check the remote repository:
git remote -v
which will respond something like
origin https://email@example.com/yourname/yourrepo.git (fetch) origin https://firstname.lastname@example.org/yourname/yourrepo.git (push)
Execute the following command:
git remote set-url origin email@example.com:yourname/yourrepo.git
Notice that you need to do some transformations: “
https://yourname@” is replaced with “
git@“, and “
/yourname” becomes “
Now “git push” should work fine.