Re: [PATCH v2] reset: add an example of how to split a commit into two
- From
Philip Oakley <philipoakley@iee.org>
- Date
- Feb 4, 2017, 12:16 UTC
- Message-ID
- <E363F108ABEF45CB99C2C721A90B5EA2@PhilipOakley>
- In-Reply-To
- <CACsJy8B2gyw7RQBh6Qfm5HxOyKWted-0ZeDfd2_U3MvWCO1HEA@mail.gmail.com>
From: "Duy Nguyen" <pclouds@gmail.com>
Show 7 quoted lines
> 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.
When looking at the man page for `reset` [1] it implies that `-N` requires `--mixed` also to be given. Is that correct? Or could the man page be clearer?
Show 5 quoted lines
> >> +$ git add -p <2> > -- > Duy >
Philip [1] https://git-scm.com/docs/git-reset