annotate .gitconfig @ 808:48ea50d346de

comment re dependency
author Jeff Hammel <k0scist@gmail.com>
date Fri, 28 Oct 2016 17:10:27 -0700
parents 0aa1d72ef538
children 446107608d89
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
223
ce34e4e8f357 add .gitconfig, oh the irony
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
1 [core]
ce34e4e8f357 add .gitconfig, oh the irony
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
2 excludesfile = /home/jhammel/.gitignore
ce34e4e8f357 add .gitconfig, oh the irony
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
3 [user]
ce34e4e8f357 add .gitconfig, oh the irony
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
4 name = Jeff Hammel
786
caaba8341045 mv this to Cisco
Jeff Hammel <k0scist@gmail.com>
parents: 728
diff changeset
5 email = jehammel@cisco.com
223
ce34e4e8f357 add .gitconfig, oh the irony
Jeff Hammel <jhammel@mozilla.com>
parents:
diff changeset
6 [alias]
301
2a1eeec1b4ea add a git root command
Jeff Hammel <jhammel@mozilla.com>
parents: 288
diff changeset
7 branches = branch -a
336
b27ea86a9c9e alias to make patch
Jeff Hammel <jhammel@mozilla.com>
parents: 315
diff changeset
8 branchname = git rev-parse --abbrev-ref HEAD
315
f8ef5a974df8 add a discard command
Jeff Hammel <jhammel@mozilla.com>
parents: 313
diff changeset
9 discard = reset HEAD --hard
792
0aa1d72ef538 add log graph alias
Jeff Hammel <k0scist@gmail.com>
parents: 788
diff changeset
10 graph = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cd)%Creset' --abbrev-commit --date=relative
336
b27ea86a9c9e alias to make patch
Jeff Hammel <jhammel@mozilla.com>
parents: 315
diff changeset
11 patch = !git diff > ~/$(git rev-parse --abbrev-ref HEAD).diff
424
d214e0f38ab1 -> pushbranch
Jeff Hammel <jhammel@mozilla.com>
parents: 392
diff changeset
12 pushbranch = !git push origin $(git rev-parse --abbrev-ref HEAD)
301
2a1eeec1b4ea add a git root command
Jeff Hammel <jhammel@mozilla.com>
parents: 288
diff changeset
13 root = rev-parse --show-toplevel
288
498210b6e1a9 add branches alias
Jeff Hammel <jhammel@mozilla.com>
parents: 223
diff changeset
14 st = status
788
fa3ad63ec3a3 https://github.com/novas0x2a/config-files/blob/master/.gitconfig#L89
Jeff Hammel <k0scist@gmail.com>
parents: 786
diff changeset
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"
604
2786c3293fb5 STUB: .gitconfig
Jeff Hammel <k0scist@gmail.com>
parents: 428
diff changeset
16 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
17 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
18
6ba565f99696 cache credentials for a session
Jeff Hammel <k0scist@gmail.com>
parents: 604
diff changeset
19 [credential]
6ba565f99696 cache credentials for a session
Jeff Hammel <k0scist@gmail.com>
parents: 604
diff changeset
20 helper = cache --timeout=10000