4

Hey there. I'm using Git for windows (The msysgit project). And working with the GIT Bash. I'm also pushing my programmed stuff to gitHub. The problem is that my gitHub's user name contains a "č" character and the GIT Bash won't let me type that in. Is there a way of setting my --global user.name within my GIT settings to contain that "č" character?

Thanks.

1
  • You could probably edit the config file directly... I believe it's somewhere like msysgit\mingw\etc\gitconfig or something like that.
    – Amber
    Sep 13, 2010 at 8:18

2 Answers 2

3

git config --edit will open your gitconfig [1] in an editor, you can set it by hand there.

[1] you can also specify these flags to edit the other gitconfigs available, quoted from git-config(1):

--system, --global or --file which specify where the values will be read from or written to. The default is to assume the config file of the current repository, .git/config unless defined otherwise with GIT_DIR and GIT_CONFIG

2
  • Thanks, your solution worked very well!.. I was able to edit my global config with the built-in VIM editor and now enjoy pushing to gitHub and seeing my own name near my push history. ;] Cheers!
    – user446079
    Sep 13, 2010 at 17:29
  • My editor won't let me input any special chars. I might be a noob, but a good old Notepad might be much more helpful here.
    – ulu
    Sep 2, 2011 at 12:46
0

You can edit the C:\*username*\.gitconfig file in your text editor

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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