本文主要是介绍.gitconfig,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
[user]
email = email.com
name = username
[credential]
helper = store
[alias]
st = status
ci = commit
co = checkout
br = branch
lg = log -20 --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold magenta)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)'
lg1 = log -20 --graph --abbrev-commit --decorate --date=short --format=format:'%C(bold magenta)%h%C(reset) - %C(bold green)(%ad)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)'
lg2 = log -20 --graph --abbrev-commit --decorate --date=default --format=format:'%C(bold magenta)%h%C(reset) - %C(bold green)(%ad)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)'
lg50 = log -50 --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold magenta)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)'
lg100 = log -100 --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold magenta)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)'
lg1000 = log -1000 --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold magenta)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)'
[push]
default = simple
[core]
editor = vim
这篇关于.gitconfig的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!