git配置文件

git配置文件位置: 当前用户目录下的隐藏文件.gitconfig

找不到原因:没有配置name

解决办法: git config --global user.name 'your name'    git config --global user.email 'your email'

设置命令简写:配置文件下加  

 [alias]
    co = checkout
    ci = commit
    br = branch
    st = status
    mg = merge --no-ff
    ci = commit
posted @ 2017-03-15 11:37  辣牛  阅读(171)  评论(0编辑  收藏  举报