diff options
| author | typebrook <typebrook@gmail.com> | 2019-05-02 11:58:20 +0800 |
|---|---|---|
| committer | typebrook <typebrook@gmail.com> | 2019-05-02 11:58:20 +0800 |
| commit | 5226aeaa0e0e7698a04bf9f3b8d55c7e5c5b93c0 (patch) | |
| tree | 9736e361c971293e5ebd63682340f419f476dfec /tigrc | |
| parent | 06d4c2a55194758aa314e707361b1be8b20d2a4a (diff) | |
update
Diffstat (limited to 'tigrc')
| -rw-r--r-- | tigrc | 12 |
1 files changed, 6 insertions, 6 deletions
| @@ -89,8 +89,8 @@ bind main 3 >git commit --allow-empty -m "%(prompt Empty commit, enter message: | |||
| 89 | # merge | 89 | # merge |
| 90 | bind main m ?git merge %(commit) | 90 | bind main m ?git merge %(commit) |
| 91 | bind main M ?git merge %(branch) --no-ff | 91 | bind main M ?git merge %(branch) --no-ff |
| 92 | bind main gm ?git merge %(remote)/%(branch) | 92 | bind main gm ?git merge %(remote)/%(branch) # merge with current remote |
| 93 | bind main gM ?git merge %(remote)/%(branch) --no-ff | 93 | bind main gM ?git merge %(remote)/%(branch) --no-ff # merge-no-ff with current remote |
| 94 | 94 | ||
| 95 | # push | 95 | # push |
| 96 | bind main p none | 96 | bind main p none |
| @@ -102,8 +102,8 @@ bind main pd ?git push %(remote) :%(branch) | |||
| 102 | bind main pD ?git push '%(prompt Which remote? )' :'%(prompt Which branch? )' | 102 | bind main pD ?git push '%(prompt Which remote? )' :'%(prompt Which branch? )' |
| 103 | 103 | ||
| 104 | # fetch | 104 | # fetch |
| 105 | bind main gf ?git fetch %(remote) | 105 | bind main gf ?git fetch %(remote) # Go to Fetch |
| 106 | bind main gF ?git fetch '%(prompt Which remote? )' | 106 | bind main gF ?git fetch '%(prompt Which remote? )' # Go to Fetch certain remote |
| 107 | bind main pu ?git pull | 107 | bind main pu ?git pull |
| 108 | bind main pU ?git pull '%(prompt Which remote? )' %(branch):%(branch) | 108 | bind main pU ?git pull '%(prompt Which remote? )' %(branch):%(branch) |
| 109 | 109 | ||
| @@ -170,7 +170,6 @@ bind status k :?^[MADRU?] | |||
| 170 | bind status s ?>git stash | 170 | bind status s ?>git stash |
| 171 | bind status S @git stash push -m "%(prompt Enter stash name: )" | 171 | bind status S @git stash push -m "%(prompt Enter stash name: )" |
| 172 | bind status gs !git stashstaged | 172 | bind status gs !git stashstaged |
| 173 | bind status U ?>git reset --hard | ||
| 174 | 173 | ||
| 175 | # quick commit | 174 | # quick commit |
| 176 | bind status c @git commit -m "%(prompt Enter commit message: )" | 175 | bind status c @git commit -m "%(prompt Enter commit message: )" |
| @@ -180,11 +179,12 @@ bind status p ?>sh -c "git commit -m 'update' && git push" | |||
| 180 | bind status d ?>rm %(file) | 179 | bind status d ?>rm %(file) |
| 181 | 180 | ||
| 182 | # solve conflict | 181 | # solve conflict |
| 182 | bind status U ?>git reset --hard | ||
| 183 | bind status gc @git clean -f | ||
| 183 | bind status Ra @git rebase --abort | 184 | bind status Ra @git rebase --abort |
| 184 | bind status Rc @git rebase --continue | 185 | bind status Rc @git rebase --continue |
| 185 | bind status <F4> !sh -c "git difftool -y \"$(git rev-parse --show-toplevel)/%(file)\"" | 186 | bind status <F4> !sh -c "git difftool -y \"$(git rev-parse --show-toplevel)/%(file)\"" |
| 186 | bind status Tu @git update-index --assume-unchanged %(file) | 187 | bind status Tu @git update-index --assume-unchanged %(file) |
| 187 | bind status gc @git clean -f | ||
| 188 | 188 | ||
| 189 | # apply patch file | 189 | # apply patch file |
| 190 | bind status <C-O> ?git am %(file) | 190 | bind status <C-O> ?git am %(file) |