-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
25 lines (25 loc) · 856 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
[include]
path = ~/.gitconfig.local
[alias]
ci = commit
cia = commit --amend
cp = cherry-pick
co = checkout
st = status
br = branch
pullp = pull --prune
pushf = push -f
graph = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit
oneline = log --pretty=oneline
cleanbranch = !"git branch | sed 's|* | |' | sort > /tmp/local && git branch -r | sed 's|origin/||' | sort > /tmp/remote && comm -23 /tmp/local /tmp/remote > /tmp/merged-branches && vim /tmp/merged-branches && xargs git branch -D </tmp/merged-branches"
[color]
diff = auto
status = auto
branch = auto
[core]
editor = vim
excludesfile = ~/.gitconfig.ignore
[init]
defaultBranch = master
[web]
browser = firefox