A friend and myself are sharing my computer. I\'ve made pushes to GitHub using the git bash shell on Windows 7. Now we\'re in a different project on that computer and I need
If after running git push Git asks for a password of user, but you would like to push as new_user, you may want to use git config remote.origin.url:
$ git push
user@my.host.com:either/branch/or/path's password:
At this point use ^C to quit git push and use following to push as new_user.
$ git config remote.origin.url
user@my.host.com:either/branch/or/path
$ git config remote.origin.url new_user@my.host.com:either/branch/or/path
$ git push
new_user@my.host.com:either/branch/or/path's password: