Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

sign a commit after push

# This requires a `git push -f` since you cannot retro-actively sign commits
git rebase --exec 'git commit --amend --no-edit -n -S' -i <branch-name>
Source by superuser.com #
 
PREVIOUS NEXT
Tagged: #sign #commit #push
ADD COMMENT
Topic
Name
7+4 =