git: new aliases; list options

This commit is contained in:
fanyx 2024-09-19 11:20:19 +02:00
parent 845cdd62c9
commit 76181e3fe7
1 changed files with 27 additions and 7 deletions

View File

@ -9,23 +9,43 @@
path = ~/b1/customer/sap/.config/git/config
[alias]
co = checkout
cn = checkout -b
cm = commit -m
l = log --pretty='format:%h %G? %s%d' -n10 --graph --color
fixup = "!git log -n50 --pretty='format:%h %s' --no-merges | fzf | cut -c -7 | xargs -o git commit --fixup"
tags = tag -l
# branches
branches = branch -a
remotes = remote -v
sb = switch
sc = switch -c
# commits
cm = commit -m
fixup = "!git log -n50 --pretty='format:%h %s' --no-merges | fzf | cut -c -7 | xargs -o git commit --fixup"
ri = "rebase -i"
# push
pushf = "push --force-with-lease"
# log
l = log --pretty='format:%h %G? %s%d' -n20 --graph --color
fzs = "!git log -n50 --pretty='format:%h %s' --no-merges | fzf | cut -c -7 | xargs -o git show"
# status
s = status -sb
ss = s -uno
# other
tags = tag -l
remotes = remote -v
[color]
diff = auto
[column]
ui = auto
[init]
defaultBranch = main
[branch]
sort = -committerdate
[rebase]
autosquash = true