.dotfiles/gitconfig

31 lines
780 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
c = commit
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
p = pull
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