|
|
|
|
@ -12,9 +12,21 @@ |
|
|
|
|
ci = commit |
|
|
|
|
st = status |
|
|
|
|
sglog = log --oneline --decorate --graph --all |
|
|
|
|
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset %Cblue<%an>%Creset' --abbrev-commit --date=relative |
|
|
|
|
co = checkout |
|
|
|
|
out = log --branches --not --remotes |
|
|
|
|
vimdiff = difftool -y -t vimdiff |
|
|
|
|
|
|
|
|
|
# tricks from https://www.durdn.com/blog/2012/11/22/must-have-git-aliases-advanced-examples/ |
|
|
|
|
|
|
|
|
|
# show vimdiff of the commit, for all files in the commit |
|
|
|
|
diffc = "!f() { git diff ${1}^1 ${1}; }; f" |
|
|
|
|
vimdiffc = "!f() { git vimdiff ${1}^1 ${1}; }; f" |
|
|
|
|
|
|
|
|
|
# show diff for file in the commit |
|
|
|
|
diffcf = "!f() { git diff ${1}^1 ${1} -- $2; }; f" |
|
|
|
|
vimdiffcf = "!f() { git vimdiff ${1}^1 ${1} -- $2; }; f" |
|
|
|
|
|
|
|
|
|
[user] |
|
|
|
|
name = Petr Nyc |
|
|
|
|
email = jet.jetpac@gmail.com |
|
|
|
|
|