Add a couple of settings

This commit is contained in:
Jan Jastrow 2024-06-23 00:56:57 +02:00
parent f2163c761d
commit abf51a8ac2

View File

@ -1,9 +1,22 @@
# This is Git's per-user configuration file. # Custom (default) settings for git
[user] [user]
# Please adapt and uncomment the following lines:
name = Jan Jastrow name = Jan Jastrow
username = jan_j
email = mail@jastrow.me email = mail@jastrow.me
[core] [core]
fsmonitor = true fsmonitor = true
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
[branch] [branch]
sort = -committerdate sort = -committerdate