常用配置
启动git bash,配置email,脚本如下:
$ git config --global user.name "Your Name"
$ git config --global user.email "[email protected]"
生成公钥,用于身份认证
key-keygen.exe -C "[email protected]" -t rsa
解决中文目录支持问题:
ls不能显示中文目录
解决办法:在git/etc/git-completion.bash中增加一行:
alias ls='ls --show-control-chars --color=auto'
git commit不能提交中文注释
解决办法:修改git/etc/inputrc中对应的行:
set output-meta on
set convert-meta off
git log无法显示中文注释
解决办法:在git/etc/profile中增加一行:
export LESSCHARSET=iso8859
GIT常见问题命令
猜你喜欢
转载自zwllxs.iteye.com/blog/2085272
今日推荐
周排行