Mercurial > hg > config
annotate .gitconfig @ 790:d4403d13fb31
correct
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Sun, 02 Oct 2016 18:37:16 -0700 |
parents | fa3ad63ec3a3 |
children | 0aa1d72ef538 |
rev | line source |
---|---|
223 | 1 [core] |
2 excludesfile = /home/jhammel/.gitignore | |
3 [user] | |
4 name = Jeff Hammel | |
786 | 5 email = jehammel@cisco.com |
223 | 6 [alias] |
301 | 7 branches = branch -a |
336 | 8 branchname = git rev-parse --abbrev-ref HEAD |
315 | 9 discard = reset HEAD --hard |
336 | 10 patch = !git diff > ~/$(git rev-parse --abbrev-ref HEAD).diff |
424 | 11 pushbranch = !git push origin $(git rev-parse --abbrev-ref HEAD) |
301 | 12 root = rev-parse --show-toplevel |
288 | 13 st = status |
788
fa3ad63ec3a3
https://github.com/novas0x2a/config-files/blob/master/.gitconfig#L89
Jeff Hammel <k0scist@gmail.com>
parents:
786
diff
changeset
|
14 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" |
604 | 15 up = !git pull origin master && git push origin master |
728
6ba565f99696
cache credentials for a session
Jeff Hammel <k0scist@gmail.com>
parents:
604
diff
changeset
|
16 wip = !git commit -a -m 'wip' && git push origin $(git rev-parse --abbrev-ref HEAD) |
6ba565f99696
cache credentials for a session
Jeff Hammel <k0scist@gmail.com>
parents:
604
diff
changeset
|
17 |
6ba565f99696
cache credentials for a session
Jeff Hammel <k0scist@gmail.com>
parents:
604
diff
changeset
|
18 [credential] |
6ba565f99696
cache credentials for a session
Jeff Hammel <k0scist@gmail.com>
parents:
604
diff
changeset
|
19 helper = cache --timeout=10000 |