Git : Add git_resign function.

This commit is contained in:
Dmitry Voronin 2024-04-10 11:12:23 +03:00
parent 6e25402f04
commit 6c910177df
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -195,6 +195,11 @@
open "''${url}" open "''${url}"
} }
# Resign all the old commits.
function git_resign() {
git rebase --exec 'git commit --amend --no-edit -n -S' -i --root
}
# Show current branch. # Show current branch.
function _git_current_branch() { function _git_current_branch() {
git branch --show-current 2> /dev/null git branch --show-current 2> /dev/null