Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am using git bash and its trying to use my Windows username to login with "git push origin Dev" but I want it to use a different name, my username on the remote. How can I change this? Thanks

share|improve this question
up vote 4 down vote accepted

Change the configuration of the origin remote. See the REMOTES section of the git-push(1) man page for details.

share|improve this answer
Thanks! That work perfectly. – mike628 Jul 12 '11 at 12:12

If I understood the situation, the following commands should set the information that you desire in for git configuration.

git config --global "Your Name Comes Here"
git config --global
share|improve this answer

Instead, save your identity in a configuration file using the git config command. $ git config "Jon Loeliger" $ git config "" You can also tell Git your name and email address using the GIT_AUTHOR_NAME and GIT_AUTHOR_EMAIL environment variables. If set, these variables override all configuration settings.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.