1
0
Fork 0
git-shortmaps/shortmaps

62 lines
1.9 KiB
Plaintext
Raw Permalink Normal View History

a _git_add :add
A _git_add :add -A
AS : |git add -A && git stash
2014-08-21 22:43:26 -04:00
b _git_branch :branch
2015-05-11 15:06:15 -04:00
bd _git_branch :branch -d
2015-05-20 09:44:03 -04:00
bd- : |ref="$( git rev-parse --symbolic-full-name @{-1} )"; git branch -d "${ref#refs/heads/*}" "$@"
bv _git_branch :branch -vv
B _git_bisect :bisect
Bs _git_bisect :bisect start
Bg _git_bisect :bisect good
Bb _git_bisect :bisect bad
Br _git_bisect :bisect reset
c _git_commit :commit
2012-04-30 23:31:40 -04:00
ca _git_commit :commit --amend
co _git_checkout :checkout
2012-04-30 23:31:40 -04:00
C _git_commit :commit -am
CS _git_commit :commit -S -am
d _git_diff :diff
2012-06-26 23:24:42 -04:00
ds _git_diff :diff --stat
f _git_fetch :fetch
L _git_log :log --show-signature
Ld _git_log :log --show-signature --decorate
Lf _git_log :log --show-signature --first-parent
Lg _git_log :log --show-signature --graph
Lgd _git_log :log --show-signature --graph --decorate
Lm _git_log :log --show-signature --merges
Ln _git_log :log --show-signature --no-merges
m _git_merge :merge
2013-08-19 23:04:15 -04:00
ma : :merge --abort
mm _git_merge :merge --no-ff
M _git_submodule :submodule
2015-03-26 15:41:48 -04:00
Mi _git_submodule :submodule update --init --recursive
Mu _git_submodule :submodule update --recursive
MP _git_submodule :submodule update --remote --recursive
p _git_push :push
pd- : |ref="$( git rev-parse --symbolic-full-name @{-1} )"; git push "${1:-origin}" :"${ref#refs/heads/*}"
pf _git_push :push --force-with-lease
pu _git_push :push --set-upstream
P _git_pull :pull
Pr _git_pull :pull --rebase=preserve
Prp _git_pull |git pull --rebase=preserve && git push
r _git_reset :reset
2015-05-14 23:43:28 -04:00
r@ _git_reset :reset @
r@: _git_reset :reset @ :/
r@* _git_reset :reset @ *
rh _git_reset :reset HEAD
R _git_rebase :rebase
Ri _git_rebase :rebase --interactive
Ra _git_rebase :rebase --abort
Rc _git_rebase :rebase --continue
2012-03-24 19:14:07 -04:00
s : :status --short
S _git_stash :stash
2014-08-21 22:42:23 -04:00
Sa _git_stash :stash apply
Sl _git_stash :stash list
Sp _git_stash :stash pop
Ss _git_stash :stash show
t : tig
T _git_tag :tag
- : :checkout -
-- : |cd "$( git rev-parse --show-toplevel 2>/dev/null )"
2014-08-21 23:43:48 -04:00
? : __git-short_help