diff options
author | typebrook <typebrook@gmail.com> | 2019-03-25 22:18:11 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2019-03-25 22:18:11 +0800 |
commit | 72b6f46e4b545231ce6adf6b51cf0ab563618f55 (patch) | |
tree | 00e60483c934f160297251b3989a4163a62b9e03 | |
parent | 7d328186d98fe2d4a941d4a1a3d3cf1c3ae00bef (diff) |
update
-rw-r--r-- | gitconfig | 5 | ||||
-rw-r--r-- | tigrc | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -3,6 +3,11 @@ | |||
3 | name = typebrook | 3 | name = typebrook |
4 | [alias] | 4 | [alias] |
5 | reorder = "!GIT_SEQUENCE_EDITOR=\"sed -i -n 'h;1n;2p;g;p'\" git rebase -i HEAD~2" | 5 | reorder = "!GIT_SEQUENCE_EDITOR=\"sed -i -n 'h;1n;2p;g;p'\" git rebase -i HEAD~2" |
6 | stashstaged = !git stash --keep-index && \ | ||
7 | git stash && \ | ||
8 | git stash apply stash@{1} && \ | ||
9 | git stash show -p | git apply -R && \ | ||
10 | git stash drop stash@{1} | ||
6 | [core] | 11 | [core] |
7 | pager = | 12 | pager = |
8 | [color] | 13 | [color] |
@@ -62,7 +62,7 @@ bind status k :?^[MADRU?] | |||
62 | 62 | ||
63 | bind status s ?git stash | 63 | bind status s ?git stash |
64 | bind status S @git stash save "%(prompt Enter stash name: )" | 64 | bind status S @git stash save "%(prompt Enter stash name: )" |
65 | bind status gs !git stash save -p "%(prompt Enter stash name: )" | 65 | bind status gs !git stashstaged |
66 | bind status p !git checkout --patch -- %(file) | 66 | bind status p !git checkout --patch -- %(file) |
67 | bind status Tu @git update-index --assume-unchanged %(file) | 67 | bind status Tu @git update-index --assume-unchanged %(file) |
68 | 68 | ||