Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a git repository set up on a linux server. I have a user with a username of cmcgrath on the git server. On our windows domain we have the same user cmcgrath. However, when he opens gitbash it shows his user as CMcGrath@computername.

This is causing major issues as he always has to run commands as a specific user instead of it pulling in the information automatically. We have checked his global settings and his username is all lower case.

Is there an easy way to fix this?

share|improve this question

migrated from stackoverflow.com Mar 5 '13 at 2:18

This question came from our site for professional and enthusiast programmers.

    
"This is causing major issues as he always has to run commands as a specific user instead of it pulling in the information automatically." - what do you mean by this? If it's just about ssh (or Git over ssh) reusing the current user's name as the default when connecting to a remote server, that can be fixed by adding a Host entry to ~/.ssh/config, or by adding the lowercase username to the remote path in the repo configuration. –  millimoose Mar 5 '13 at 1:50
1  
Configure a username. See "Your Identity". git-scm.com/book/en/Getting-Started-First-Time-Git-Setup –  Ярослав Рахматуллин Mar 5 '13 at 4:58

Your Answer

 
discard

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