-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitconfig
38 lines (37 loc) · 1.04 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
# Execute cmd to configure git.
# rm -rf ~/.gitconfig && ln -s ~/repos/configs/.gitconfig ~/.gitconfig
[user]
name = Magnus Kirø
email = [email protected]
[credential]
helper = cache --timeout=3600
[push]
default = upstream
[color]
status = auto
branch = auto
ui = auto
[core]
editor = vim
autocrlf = input
[alias]
pl = pull
pr = pull --rebase
ps = push
pst = push --tags
st = status
cm = commit -m
ca = commit -am
cma = commit --amend
b = branch
br = branch --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(contents:subject) %(color:green)(%(committerdate:relative)) [%(authorname)]' --sort=-committerdate
co = checkout
d = diff
df = diff
l = log --color --oneline --graph --pretty=format:'%C(yellow)%h%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset -%C(red)%d%Creset'
lg = log -p
who = shortlog -s --
today = log --committer='Magnus Kirø' --since='6am' --no-merges
s = stash
sp = stash pop
undo = reset HEAD~1 --mixed