Initial global git settings
This commit is contained in:
parent
011fb4019d
commit
9e40d54a7b
1 changed files with 30 additions and 0 deletions
30
gitconfig
Normal file
30
gitconfig
Normal file
|
@ -0,0 +1,30 @@
|
|||
[alias]
|
||||
|
||||
# lg
|
||||
lg = log --graph --pretty=tformat:'%Cred%h%Creset -%C(auto)%d%Creset %s %Cgreen(%an %ar)%Creset'
|
||||
# lg2
|
||||
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
|
||||
# lastchange
|
||||
lastchange = log -p --follow -n 1
|
||||
|
||||
[apply]
|
||||
|
||||
# Detect whitespace errors when applying a patch
|
||||
whitespace = fix
|
||||
|
||||
[filter "lfs"]
|
||||
|
||||
# git-lfs stuff
|
||||
clean = git-lfs clean %f
|
||||
smudge = git-lfs smudge %f
|
||||
required = true
|
||||
|
||||
[gpg]
|
||||
|
||||
# Use `gpg2` binary for GnuPG
|
||||
program = gpg2
|
||||
|
||||
[help]
|
||||
|
||||
# Automatically correct typos in commands
|
||||
autocorrect = 1
|
Loading…
Add table
Reference in a new issue