开发者

How to set up your username in Git if it contains special characters?

开发者 https://www.devze.com 2023-01-16 02:41 出处:网络
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 \"č\

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.


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


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

0

精彩评论

暂无评论...
验证码 换一张
取 消