Mercurial > hg > config
annotate .gitconfig @ 869:ca1fb54c03ee
https://coderwall.com/p/7aymfa/please-oh-please-use-git-pull-rebase
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Mon, 10 Sep 2018 10:23:50 -0700 |
parents | 7191914724f0 |
children | ba2630ce851b |
rev | line source |
---|---|
223 | 1 [core] |
2 excludesfile = /home/jhammel/.gitignore | |
3 [user] | |
4 name = Jeff Hammel | |
854
66321798ac82
[git] update for modern times
Jeff Hammel <k0scist@gmail.com>
parents:
820
diff
changeset
|
5 email = jeff@leapyear.io |
223 | 6 [alias] |
301 | 7 branches = branch -a |
818
352530cbf195
[gitconfig] rename this + make it work
Jeff Hammel <k0scist@gmail.com>
parents:
813
diff
changeset
|
8 current-branch = rev-parse --abbrev-ref HEAD |
315 | 9 discard = reset HEAD --hard |
792 | 10 graph = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cd)%Creset' --abbrev-commit --date=relative |
864
7191914724f0
[git] update name and fix syntax
Jeff Hammel <k0scist@gmail.com>
parents:
863
diff
changeset
|
11 lo = log --oneline |
336 | 12 patch = !git diff > ~/$(git rev-parse --abbrev-ref HEAD).diff |
424 | 13 pushbranch = !git push origin $(git rev-parse --abbrev-ref HEAD) |
301 | 14 root = rev-parse --show-toplevel |
288 | 15 st = status |
788
fa3ad63ec3a3
https://github.com/novas0x2a/config-files/blob/master/.gitconfig#L89
Jeff Hammel <k0scist@gmail.com>
parents:
786
diff
changeset
|
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" |
813
446107608d89
add undo for one level only
Jeff Hammel <k0scist@gmail.com>
parents:
792
diff
changeset
|
17 undo = reset HEAD~ |
604 | 18 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
|
19 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
|
20 |
6ba565f99696
cache credentials for a session
Jeff Hammel <k0scist@gmail.com>
parents:
604
diff
changeset
|
21 [credential] |
813
446107608d89
add undo for one level only
Jeff Hammel <k0scist@gmail.com>
parents:
792
diff
changeset
|
22 helper = cache --timeout=10000 |
820
737b9eda7f77
[git submodules] logging stub
Jeff Hammel <k0scist@gmail.com>
parents:
818
diff
changeset
|
23 [diff] |
737b9eda7f77
[git submodules] logging stub
Jeff Hammel <k0scist@gmail.com>
parents:
818
diff
changeset
|
24 submodule = log |
869
ca1fb54c03ee
https://coderwall.com/p/7aymfa/please-oh-please-use-git-pull-rebase
Jeff Hammel <k0scist@gmail.com>
parents:
864
diff
changeset
|
25 [branch] |
ca1fb54c03ee
https://coderwall.com/p/7aymfa/please-oh-please-use-git-pull-rebase
Jeff Hammel <k0scist@gmail.com>
parents:
864
diff
changeset
|
26 autosetuprebase = always |