From https://git-scm.com/docs/git-rebase
--no-ff With --interactive, cherry-pick all rebased commits instead of fast-forwarding over the unchanged ones. This ensures that the entire
history of the rebased branch is composed of new commits.
Without --interactive, this is a synonym for --force-rebase.
You may find this helpful after reverting a topic branch merge, as
this option recreates the topic branch with fresh commits so it can be
remerged successfully without needing to "revert the reversion" (see
the revert-a-faulty-merge How-To for details).
Cherry pick creates new commits, and git post-commit hook runs after new commit is created, right?
From: https://git-scm.com/docs/git-cherry-pick
DESCRIPTION
Given one or more existing commits, apply the change each one introduces, recording a new commit for each. This requires your working tree to be clean (no modifications from the HEAD commit).
Is that clear?
rebase -i
running thepost-commit
hooks? – Kellam