Re: [PATCH v2] reset: add an example of how to split a commit into two
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Feb 4, 2017, 11:06 UTC
- Message-ID
- <CACsJy8B2gyw7RQBh6Qfm5HxOyKWted-0ZeDfd2_U3MvWCO1HEA@mail.gmail.com>
- In-Reply-To
- <20170203202833.17666-1-jacob.e.keller@intel.com>
On Sat, Feb 4, 2017 at 3:28 AM, Jacob Keller <jacob.e.keller@intel.com> wrote:
> +------------ > +$ git reset HEAD^ <1>
It may be a good idea to add -N here, so that 'add -p' can pick up the new files if they are added in HEAD.
> +$ git add -p <2>
-- Duy