-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
40 lines (37 loc) · 1.05 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
[user]
name = Jonathan Emord
email = [email protected]
[push]
default = simple
[branch]
autosetuprebase = always
[color]
ui = true
[alias]
ci = commit
co = checkout
st = status
unstage = reset HEAD --
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative
ctags = !.git/hooks/ctags
# remove all branches merged in to HEAD
trim = "!git branch --merged | grep -v '\\*' | xargs -n 1 git branch -d"
edit-modified = "!f() { git ls-files --modified | cut -f2 | sort -u ; }; vim `f`"
edit-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; vim `f`"
add-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; git add `f`"
sub = submodule update --init --recursive
[help]
autocorrect = 1
[init]
templatedir = ~/.git_template
[core]
editor = vim
[diff]
compactionHeuristic = true
indentHeuristic = true
[merge]
conflictstyle = diff3
[status]
showUntrackedFiles = all
[transfer]
fsckobjects = true