Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

3 Answers 3

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 user.name "Your Name Comes Here"
git config --global user.email you@yourdomain.example.com
share|improve this answer

Instead, save your identity in a configuration file using the git config command. $ git config user.name "Jon Loeliger" $ git config user.email "jdl@example.com" 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.