This repository has been archived by the owner on Nov 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
gitconfig
53 lines (51 loc) · 1.6 KB
/
gitconfig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# This file was generated by increments/dotfiles-for-designers
[include]
path = ~/.gitconfig.local
[color]
ui = auto
[core]
editor = vim
excludesfile = ~/.gitignore
[init]
templatedir = ~/.gittemplate
[hub]
protocol = https
[filter "media"]
clean = git-media-clean %f
smudge = git-media-smudge %f
[alias]
co = checkout
st = status
logg = log --stat --decorate=short --pretty=format:'%C(yellow)%h %Cgreen%cr %Cblue%cn%Cred%d %Creset%s %C(cyan)%b'
aliases = config --get-regexp alias
branch-root = merge-base master HEAD
current-branch = symbolic-ref --quiet --short HEAD
delete-merged-branches = !git branch -D "$(git branch --merged master | grep -v master | grep -v '*')"
review = !tig --no-walk -w $(git branch-root)..HEAD
sync = !git checkout master && git pull origin master && git update
uncommit = reset HEAD~
update = !git fetch --prune && git update-ref refs/heads/master origin/master && git delete-merged-branches
sync-hooks = !cp $DOTFILES_ROOT/gittemplate/hooks/* .git/hooks
[push]
default = current
[pull]
rebase = true
[filter "lfs"]
clean = git-lfs clean %f
smudge = git-lfs smudge %f
required = true
[ghq]
root = ~/src
[url "git@github.com:"]
pushInsteadOf = "https://github.com/"
[tig "bind"]
# @-prefix means that the console output will not be shown.
blob = B @hub browse -- tree/%(commit)/%(file)
diff = B @hub browse -- commit/%(commit)
diff = F ?!git commit --fixup %(commit)
diff = S ?!git commit --squash %(commit)
main = F ?!git commit --fixup %(commit)
main = S ?!git commit --squash %(commit)
tree = B @hub browse -- tree/%(commit)/%(directory)
[rebase]
autoSquash = true