git配置
放在~/.gitconfig文件中
[user] name = victor.dong email = dxs_uestc@163.com [color] ui = auto [alias] st = status co = checkout ci = commit br = branch df = diff dfn = diff --name-only dfs = diff --staged dft = difftool dfts = difftool --staged mr = merge mrt = mergetool last = log -1 HEAD amend = commit -C HEAD -a --amend lg = log --color --graph --pretty=format:'%C(yellow)%h%C(reset) - %C()%cd%C(reset) %C()<%an>%C(reset)%C(red)%d%C(reset) %C(ul)%s%C(reset)' --abbrev-commit --date=format:'%y/%m/%d %H:%M:%S' ls = log --name-only --color --graph --pretty=format:'%C(yellow)%h%C(reset) - %C()%cd%C(reset) %C()<%an>%C(reset)%C(red)%d%C(reset) %C(ul)%s%C(reset)' --abbrev-commit --date=format:'%y/%m/%d %H:%M:%S' #not show log in new page [core] pager = #diff tool use beyond compare [diff] tool = bcomp [difftool "bcomp"] cmd = \"/usr/bin/bcompare\" \"$LOCAL\" \"$REMOTE\" [difftool] prompt = false #merge tool use beyond compare [merge] tool = bcomp [mergetool "bcomp"] cmd = \"/usr/bin/bcompare\" \"$LOCAL\" \"$REMOTE\" \"$BASE\" \"$MERGED\" [mergetool] prompt = false
生活不止眼前的苟且,还有诗和远方
本文链接: https://dxsm.github.io/p/git-learning.html
版权声明: 本博客所有文章除特别声明外,均采用CC BY-NC-SA 3.0许可协议。转载请注明出处!