-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
56 lines (56 loc) · 1.32 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
54
55
56
[core]
excludesfile = /Users/jimfung/.gitignore_global
editor = vim
commentChar = %
# pager = diff-so-fancy | less --tabs=4 -RFX
# make rebase on macOS safe <https://www.git-tower.com/blog/make-git-rebase-safe-on-osx/>
trustctime = false
[user]
name = Jim Fung
email = [email protected]
[filter "media"]
required = true
clean = git media clean %f
smudge = git media smudge %f
[push]
default = simple
[credential]
helper = store --file ~/.git_credentials
[filter "hawser"]
clean = git hawser clean %f
smudge = git hawser smudge %f
required = true
[mergetool]
keepBackup = false
[filter "lfs"]
clean = git lfs clean %f
smudge = git lfs smudge %f
required = true
[alias]
a = add
co = checkout
s = status
d = diff
dc = diff --cached
c = commit
cm = commit -m
ca = commit -a -m
cap = commit -a -m $1 && push
bcleanup = !git branch --merged master | grep -v \"\\* master\" | xargs -n 1 git branch -d
l = log
ri = rebase -i
branch-name = "!git rev-parse --abbrev-ref HEAD"
pu = "!sh ~/.dotfiles/scripts/git/push_to_origin_branch.sh"
nb = checkout -b
f = fetch
fixup = commit --fixup head
not-pushed = log --branches --not --remotes
[rebase]
autosquash = true
[hub]
protocol = https
[commit]
template = /Users/jimfung/.stCommitMsg
gpgsign = false
[init]
templatedir = /Users/jimfung/.git-templates