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 path = ~/b1/customer/sap/.config/git/config
[alias] [alias]
co = checkout # branches
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 = branch -a 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 s = status -sb
ss = s -uno ss = s -uno
# other
tags = tag -l
remotes = remote -v
[color] [color]
diff = auto diff = auto
[column]
ui = auto
[init] [init]
defaultBranch = main defaultBranch = main
[branch]
sort = -committerdate
[rebase] [rebase]
autosquash = true autosquash = true