Take the 2-minute tour ×
Server Fault is a question and answer site for professional 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
add comment

3 Answers

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
add comment

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
add comment

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
add comment

Your Answer

 
discard

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.