-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
33 lines (33 loc) · 1011 Bytes
/
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
[user]
name = Peter Lind
useConfigOnly = true
[core]
excludesfile = ~/.gitignore.global
autocrlf = input
safecrlf = true
[alias]
b = branch
co = checkout
stat = status
st = status
cm = commit
lg = !git log | vim -
history = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
unpushed = !"PROJ_BRANCH=$(git symbolic-ref HEAD | sed 's|refs/heads/||') && git log origin/$PROJ_BRANCH..HEAD"
unpulled = !"PROJ_BRANCH=$(git symbolic-ref HEAD | sed 's|refs/heads/||') && git fetch && git log HEAD..origin/$PROJ_BRANCH"
churn = !"git log --all -M -C --name-only --format='format:' "$@" | sort | grep -v '^$' | uniq -c | sort -n | awk 'BEGIN {print \"count\tfile\"} {print $1 \"\t\" $2}'"
undo-commit = reset --soft HEAD~
[push]
# Push current branch even if you've never pushed it before
default = current
[color]
ui = auto
pager = true
[init]
templatedir = ~/.git_template
[branch]
autosetuprebase = always
[diff]
colorMoved = zebra
[protocol]
version = 2