-
Notifications
You must be signed in to change notification settings - Fork 8
/
gitconfig
41 lines (36 loc) · 1.09 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
[user]
name = Miles Z. Sterrett
email = [email protected]
[apply]
whitespace = strip
[color]
diff = auto
status = auto
branch = auto
[alias]
st = status
d = diff
a = add
ci = commit
cia = commit -a
co = checkout
cob = checkout -b
br = branch
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative
l1 = log --pretty=oneline --abbrev-commit --decorate
lp = log -p
who = shortlog -s --
datetag = !git tag `date \"+%Y%m%d%H%M\"`
churn = "!f() { git log --all -M -C --name-only --format='format:' \"$@\" | sort | grep -v '^$' | uniq -c | sort | awk 'BEGIN {print \"count\tfile\"} {print $1 \"\t\" $2}' | sort -g; }; f"
edit-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; vim -p `f`"
add-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; git add `f`"
[github]
user = mileszs
[merge]
tool = vimdiff
[gui]
recentrepo = /Users/mileszs/code/healthpro/rms
[pull]
rebase = false
[init]
defaultBranch = trunk