Mercurial > hg > config
comparison .gitconfig @ 864:7191914724f0
[git] update name and fix syntax
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Thu, 07 Jun 2018 14:33:07 -0700 |
parents | 7611b27e7cc3 |
children | ca1fb54c03ee |
comparison
equal
deleted
inserted
replaced
863:7611b27e7cc3 | 864:7191914724f0 |
---|---|
5 email = jeff@leapyear.io | 5 email = jeff@leapyear.io |
6 [alias] | 6 [alias] |
7 branches = branch -a | 7 branches = branch -a |
8 current-branch = rev-parse --abbrev-ref HEAD | 8 current-branch = rev-parse --abbrev-ref HEAD |
9 discard = reset HEAD --hard | 9 discard = reset HEAD --hard |
10 ll = git log --oneline | |
11 graph = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cd)%Creset' --abbrev-commit --date=relative | 10 graph = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cd)%Creset' --abbrev-commit --date=relative |
11 lo = log --oneline | |
12 patch = !git diff > ~/$(git rev-parse --abbrev-ref HEAD).diff | 12 patch = !git diff > ~/$(git rev-parse --abbrev-ref HEAD).diff |
13 pushbranch = !git push origin $(git rev-parse --abbrev-ref HEAD) | 13 pushbranch = !git push origin $(git rev-parse --abbrev-ref HEAD) |
14 root = rev-parse --show-toplevel | 14 root = rev-parse --show-toplevel |
15 st = status | 15 st = status |
16 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 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" |