.dotfiles/gitconfig

23 lines
630 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]
br = branch
c = commit
co = checkout
ca = c -a
p = pull
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
conflict = diff --name-only --diff-filter=U
hash = !git rev-parse HEAD | cut -c 1-8
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