Saturday, June 6, 2015

"git push" to Github wants me to log in!

If git prompts you for a username when you push:

$ git push


Check your remote settings.

$ git remote -v
origin (fetch)
origin (push)

If it's an https reference, you can change it to an ssh reference as follows. 

$ git remote set-url origin

And everything is great!

$ git push
Everything up-to-date

No comments: