Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to sign-off a Merge Commit in Git?

I have to sign off my every commit to push to the origin. However, merge commits are not signed off, I use sourcetree and also the git console, could not sign-off a merge commit. Is there a way that could be done?

like image 452
mozcelikors Avatar asked Dec 02 '22 11:12

mozcelikors


2 Answers

You can run git commit --amend --no-edit -s after merge is done.

like image 172
eftshift0 Avatar answered Dec 11 '22 11:12

eftshift0


You can do a merge without committing:

git merge --no-commit

Git prepares everything for committing. After that you finish the merge with

git commit -s
like image 26
phd Avatar answered Dec 11 '22 10:12

phd