# HG changeset patch # User Jeff Hammel # Date 1478564118 28800 # Node ID 446107608d89f3c0af5a25210b221305f611d97c # Parent 0bc7c1a5eb83f87907329b7a9fbabb63d5ac57d4 add undo for one level only diff -r 0bc7c1a5eb83 -r 446107608d89 .gitconfig --- a/.gitconfig Fri Oct 28 18:54:56 2016 -0700 +++ b/.gitconfig Mon Nov 07 16:15:18 2016 -0800 @@ -13,8 +13,9 @@ root = rev-parse --show-toplevel st = status 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" + undo = reset HEAD~ up = !git pull origin master && git push origin master wip = !git commit -a -m 'wip' && git push origin $(git rev-parse --abbrev-ref HEAD) [credential] - helper = cache --timeout=10000 \ No newline at end of file + helper = cache --timeout=10000