mirror of
https://github.com/JanJastrow/.dotfiles.git
synced 2024-11-21 18:19:56 +01:00
31 lines
780 B
Plaintext
31 lines
780 B
Plaintext
# Custom (default) settings for git
|
|
[user]
|
|
name = Jan Jastrow
|
|
username = jan_j
|
|
email = mail@jastrow.me
|
|
[core]
|
|
fsmonitor = true
|
|
editor = nano -w
|
|
[init]
|
|
defaultBranch = main
|
|
[alias]
|
|
a = add
|
|
br = branch
|
|
c = commit
|
|
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
|
|
p = pull
|
|
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
|