mirror of
https://github.com/JanJastrow/.dotfiles.git
synced 2024-11-24 11:22:50 +01:00
Upgrade gitconfig
This commit is contained in:
parent
d2415d7b5b
commit
ac3c53cda7
14
gitconfig
14
gitconfig
@ -9,14 +9,22 @@
|
|||||||
[init]
|
[init]
|
||||||
defaultBranch = main
|
defaultBranch = main
|
||||||
[alias]
|
[alias]
|
||||||
|
a = add
|
||||||
br = branch
|
br = branch
|
||||||
c = commit
|
c = commit
|
||||||
co = checkout
|
|
||||||
ca = c -a
|
ca = c -a
|
||||||
p = pull
|
co = checkout
|
||||||
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
|
conflict = diff --name-only --diff-filter=U
|
||||||
|
d = diff
|
||||||
hash = !git rev-parse HEAD | cut -c 1-8
|
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
|
undo = !f() { git reset --hard $(git rev-parse --abbrev-ref HEAD)@{${1-1}}; }; f
|
||||||
[branch]
|
[branch]
|
||||||
sort = -committerdate
|
sort = -committerdate
|
||||||
|
[help]
|
||||||
|
autocorrect = 30
|
||||||
|
Loading…
Reference in New Issue
Block a user