git的配置

边看<<Pro Git>>与查资料过程中写的一些笔记,供以后自己查阅:

 

一些常用的配置如下,可以直接存储在文件中(home目录中的.gitconf,或者直接用git命令行设置)

 

[core]
    editor = emacs
[merge]
    tool = vimdiff
[alias]
    co = checkout
    ci = commit -a
    st = status
    br = branch
    
[color]
    status = auto
    branch = auto
    ui = auto

 

 

常用的是ci ,另外,设置了[color]更容易分辨哪些是新增加的,哪些是有修改的,以及更清晰地查看log。

你可能感兴趣的:(git的配置)