Mercurial > hg > config
comparison .gitconfig @ 813:446107608d89
add undo for one level only
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Mon, 07 Nov 2016 16:15:18 -0800 |
parents | 0aa1d72ef538 |
children | 352530cbf195 |
comparison
equal
deleted
inserted
replaced
812:0bc7c1a5eb83 | 813:446107608d89 |
---|---|
11 patch = !git diff > ~/$(git rev-parse --abbrev-ref HEAD).diff | 11 patch = !git diff > ~/$(git rev-parse --abbrev-ref HEAD).diff |
12 pushbranch = !git push origin $(git rev-parse --abbrev-ref HEAD) | 12 pushbranch = !git push origin $(git rev-parse --abbrev-ref HEAD) |
13 root = rev-parse --show-toplevel | 13 root = rev-parse --show-toplevel |
14 st = status | 14 st = status |
15 subscribe-pulls = !"f() { REMOTE=${1:-origin}; if ! git config --local --get-all remote.${REMOTE}.fetch | grep -q refs/pull; then echo 'subscribing...' 2>&1; git config --local --add remote.${REMOTE}.fetch '+refs/pull/*/head:refs/remotes/pr/*'; fi; }; f" | 15 subscribe-pulls = !"f() { REMOTE=${1:-origin}; if ! git config --local --get-all remote.${REMOTE}.fetch | grep -q refs/pull; then echo 'subscribing...' 2>&1; git config --local --add remote.${REMOTE}.fetch '+refs/pull/*/head:refs/remotes/pr/*'; fi; }; f" |
16 undo = reset HEAD~ | |
16 up = !git pull origin master && git push origin master | 17 up = !git pull origin master && git push origin master |
17 wip = !git commit -a -m 'wip' && git push origin $(git rev-parse --abbrev-ref HEAD) | 18 wip = !git commit -a -m 'wip' && git push origin $(git rev-parse --abbrev-ref HEAD) |
18 | 19 |
19 [credential] | 20 [credential] |
20 helper = cache --timeout=10000 | 21 helper = cache --timeout=10000 |