config/git: update commit aliases

This commit is contained in:
xeruf 2021-06-23 17:23:28 +02:00
parent fb9b20d4d9
commit 6b864f9b51
1 changed files with 5 additions and 3 deletions

View File

@ -101,12 +101,13 @@
my = lo --author [Jj]anek my = lo --author [Jj]anek
standup = my --since yesterday --all standup = my --since yesterday --all
co-authors = !git log | grep -i Co-Authored | awk '!a[$0]++' co-authors = !git log | grep -i Co-Authored | awk '!a[$0]++'
when = git for-each-ref --sort=committerdate --format='%(refname:short) * %(authorname) * %(committerdate:relative)' refs/remotes/ # List all branches with their last updates when = !git for-each-ref --sort=committerdate --format='%(refname:short) * %(authorname) * %(committerdate:relative)' refs/remotes/ # List all branches with their last updates
d = diff d = diff
dm = !git diff $(git merge-base $(git main) HEAD) dm = !git diff $(git merge-base $(git main) HEAD)
dw = diff --color-words dw = diff --color-words
dc = diff --color-words="[^[:space:]]|([[:alnum:]]|UTF_8_GUARD)+" dc = diff --color-words="[^[:space:]]|([[:alnum:]]|UTF_8_GUARD)+"
du = diff @{push}
# MODIFY # MODIFY
@ -115,13 +116,14 @@
aa = add -u . aa = add -u .
ap = add -p ap = add -p
c = commit -v c = commit -v
cme = commit -v --edit --message cad = !git diff-tree --no-commit-id --name-only -r HEAD | git commit -v --amend --pathspec-from-file=- # Amend commit with all already changed files
cme = commit -v --edit --message # Commit with message but edit it
cp = cherry-pick cp = cherry-pick
rb = rebase rb = rebase
rbi = rebase --interactive rbi = rebase --interactive
rbc = rebase --continue rbc = rebase --continue
rbm = !git rb $(git main) rbm = !git rebase $(git main)
sta = stash sta = stash
stl = !git --no-pager stash list --pretty=tformat:'%gd%h - %s (%cr)' stl = !git --no-pager stash list --pretty=tformat:'%gd%h - %s (%cr)'