-
Notifications
You must be signed in to change notification settings - Fork 0
/
gitconfig
35 lines (35 loc) · 1.16 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
[user]
name = Fredrik Svenson
mail = [email protected]
email = [email protected]
[core]
editor = vim
[alias]
lg1 = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)'
lg2 = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold green)(%ar)%C(reset)%C(bold yellow)%d%C(reset)%n'' %C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all
lol = log --name-status --oneline --no-decorate origin/develop..
lg = !"git lg1"
cp = cherry-pick
st = status
cl = clone
ci = commit
co = checkout
br = branch
rb = rebase
diff = diff --word-diff
dc = diff --cached
r = reset
r1 = reset HEAD^
r2 = reset HEAD^^
rh = reset --hard
rh1 = reset HEAD^ --hard
rh2 = reset HEAD^^ --hard
la = "!git config -l | grep alias | cut -c 7-"
dl = "!git ll -1" # show modified in last commit
dlc = diff --cached HEAD^ # show diff last commit
[push]
default = simple
[rebase]
AutoSquash = true
[diff]
tool = meld