.dotfiles/gitconfig

32 lines
795 B
Plaintext
Raw Normal View History

2024-06-23 00:56:57 +02:00
# Custom (default) settings for git
2024-06-23 00:24:06 +02:00
[user]
2024-06-23 00:56:57 +02:00
name = Jan Jastrow
username = jan_j
email = mail@jastrow.me
2024-06-23 00:24:06 +02:00
[core]
fsmonitor = true
2024-06-23 00:56:57 +02:00
editor = nano -w
[init]
defaultBranch = main
[alias]
2024-08-11 01:27:15 +02:00
a = add
2024-06-23 00:56:57 +02:00
br = branch
2024-08-11 20:36:10 +02:00
c = commit -m
2024-06-23 00:56:57 +02:00
ca = c -a
2024-08-11 01:27:15 +02:00
co = checkout
2024-06-23 00:56:57 +02:00
conflict = diff --name-only --diff-filter=U
2024-08-11 01:27:15 +02:00
d = diff
2024-06-23 00:56:57 +02:00
hash = !git rev-parse HEAD | cut -c 1-8
2024-08-11 01:27:15 +02:00
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
2024-08-11 20:36:10 +02:00
pl = pull
pu = push
2024-08-11 01:27:15 +02:00
rv = remote -v
se = !git rev-list --all | xargs git grep -F
st = status -sb
2024-06-23 00:56:57 +02:00
undo = !f() { git reset --hard $(git rev-parse --abbrev-ref HEAD)@{${1-1}}; }; f
2024-06-23 00:24:06 +02:00
[branch]
2024-06-23 00:56:57 +02:00
sort = -committerdate
2024-08-11 01:27:15 +02:00
[help]
autocorrect = 30