On Wed, 17 Jan 2018 20:13:28 +0100 Rasmus Villemoes <[email protected]> wrote:
> If you use at least git 2.0.0 [1], set commit.cleanup to "scissors". > Something like > > git config commit.cleanup scissors > > should do the trick. Instead of stripping all lines starting with #, > that will only strip stuff below a line containing > > # ------------------------ >8 ------------------------ > > and git should be smart enough to insert that in the editor it fires up > for a commit message. > > > [1] https://github.com/git/git/blob/master/Documentation/RelNotes/2.0.0.txt > > Thanks for the pointer. -- Steve

