git 顏色和快捷 設置

通過配置~/.gitcongig 可以自定義git的快捷命令 br cm st ```


git config --global color.diff auto 


git config --global color.status auto 


git config --global color.branch auto

如:

[color]
    diff = auto
    status = auto
    branch = auto


快捷鍵:

git config --global alias.st status


git config --global alias.co checkout


git config --global alias.ct commit


git config --global alias.df diff

git config --global alias.br branch

 

用戶名:

[~]$ git config --global user.name "lubin"
[~]$ git config --global user.email [email protected]





發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章