-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgitconfig
33 lines (33 loc) · 831 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
# Custom (default) settings for git
[user]
name = Jan Jastrow
username = jan_j
email = [email protected]
[core]
fsmonitor = true
editor = nano -w
[init]
defaultBranch = main
[alias]
a = add
aa = add --all
br = branch
c = commit -m
ca = c -a
co = checkout
conflict = diff --name-only --diff-filter=U
d = diff
hash = !git rev-parse HEAD | cut -c 1-8
l = log --all --color --graph --pretty=format:'%Cred%h%Creset %G?%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit # Colorful and easy to read log
last = log -1 HEAD --stat
pl = pull
pr = pull --rebase
pu = push
rv = remote -v
se = !git rev-list --all | xargs git grep -F
st = status -sb
undo = !f() { git reset --hard $(git rev-parse --abbrev-ref HEAD)@{${1-1}}; }; f
[branch]
sort = -committerdate
[help]
autocorrect = 30