reset: add an example of how to split a commit into two
commit7326451bedaa67d29afe02184b166e28d9393c91
authorJacob Keller <jacob.keller@gmail.com>
Fri, 3 Feb 2017 20:28:33 +0000 (3 12:28 -0800)
committerJunio C Hamano <gitster@pobox.com>
Sat, 4 Feb 2017 06:31:47 +0000 (3 22:31 -0800)
tree9df2ca286dfa57669523b0043c545c67556f6622
parent6e3a7b3398559305c7a239a42e447c21a8f39ff8
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