reset: add an example of how to split a commit into two
commitf94baa4d9395b7635768f5548d800132ff36958d
authorJacob Keller <jacob.keller@gmail.com>
Thu, 16 Feb 2017 00:22:12 +0000 (15 16:22 -0800)
committerJunio C Hamano <gitster@pobox.com>
Thu, 16 Feb 2017 21:38:02 +0000 (16 13:38 -0800)
treec37b17b9debde35237c0435dd432bb4d5e2dbb28
parentae86372fcd1204c9acda8ea7f91d2995bdb39ab1
reset: add an example of how to split a commit into two

It is often useful to break a commit into multiple parts that are more
logical separations. This can be tricky to learn how to do without the
brute-force method if re-writing code or commit messages from scratch.

Add a section to the git-reset documentation which shows an example
process for how to use git add -p and git commit -c HEAD@{1} to
interactively break a commit apart and re-use the original commit
message as a starting point when making the new commit message.

Signed-off-by: Jacob Keller <jacob.keller@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-reset.txt