forked from cvuorinen/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
34 lines (33 loc) · 903 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
[core]
excludesfile = /home/kalle/.gitignore_global
autocrlf = input
[user]
name = Carl Vuorinen
email = [email protected]
[color]
ui = true
[push]
default = simple
[alias]
c = commit
a = add
b = branch
p = pull --rebase
s = status
co = checkout
cob = checkout -b
ca = commit --amend
undo = reset HEAD~1 --mixed
wip = commit -am "WIP"
trash = !git add . && git commit -m 'trash' && git reset --hard HEAD^
clean-merged = !git branch --merged master | grep -v "master$" | xargs -n 1 git branch -d
latest = for-each-ref --sort=-committerdate refs/heads/
lol = log --pretty=format:'%Cred%h%Creset %C(blue)%cd %Cgreen%an %C(yellow)%d%Creset %Creset %s' --abbrev-commit --graph --date=format:'%Y-%m-%d %H:%M'
[diff]
tool = vimdiff
[difftool]
prompt = false
[rerere]
enabled = true
autoupdate = true
[init]