19 brd = diff @{u}.. |
19 brd = diff @{u}.. |
20 brf = diff --name-only @{u}.. |
20 brf = diff --name-only @{u}.. |
21 staged = diff --cached |
21 staged = diff --cached |
22 unstage = reset HEAD -- |
22 unstage = reset HEAD -- |
23 rollback = reset --soft ^HEAD |
23 rollback = reset --soft ^HEAD |
24 pushF = push --force-with-lease |
24 pushf = push --force-with-lease |
25 up = pull -r --prune |
25 up = pull -r --prune |
26 update = "!git remote update -p && git merge --ff-only --stat @{u}" |
26 update = "!git remote update -p && git merge --ff-only --stat @{u}" |
27 in = "!git remote update -p; git log --pretty=onelinecustom ..@{u}" |
27 in = "!git remote update -p; git log --pretty=onelinecustom ..@{u}" |
28 out = "!git log --pretty=onelinecustom @{u}.." |
28 out = "!git log --pretty=onelinecustom @{u}.." |
29 new = "!git log --pretty=onelinecustom $1@{1}..$1@{0}" |
29 new = "!git log --pretty=onelinecustom $1@{1}..$1@{0}" |
30 glog = log --graph --pretty=onelinecustom |
30 glog = log --graph --pretty=onelinecustom |
31 recent = "!f() { git for-each-ref --count=20 --sort=-committerdate --format=\"%(committerdate:short) %(refname:short)\" ${1:-refs/heads} ${@:2}; }; f" |
31 recent = "!f() { git for-each-ref --count=20 --sort=-committerdate --format=\"%(committerdate:short) %(refname:short)\" ${1:-refs/heads} ${@:2}; }; f" |
|
32 orphan = "!f() { git fsck --dangling | grep commit | cut -d' ' -f3 | xargs git show --compact-summary; }; f" |
32 |
33 |
33 [pretty] |
34 [pretty] |
34 onelinecustom = tformat:%C(magenta)%h%Creset %G? -%C(yellow)%d%Creset %s %C(green)(%cr)%Creset %C(cyan)<%an>%Creset |
35 onelinecustom = tformat:%C(magenta)%h%Creset %G? -%C(yellow)%d%Creset %s %C(green)(%cr)%Creset %C(cyan)<%an>%Creset |
35 |
36 |
36 [ui] |
37 [ui] |