Re: staging specific lines out of a hunk for a commit
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Sep 21, 2010, 11:31 UTC
- Message-ID
- <vpqocbrjpts.fsf@bauges.imag.fr>
- In-Reply-To
- <AANLkTinJRT7x-TS0R1C00-djVk3rKOt_Axys+orBhZfx@mail.gmail.com>
Graeme Geldenhuys <graemeg.lists@gmail.com> writes:
Show 8 quoted lines
> On 21 September 2010 12:52, Bert Wesarg wrote: >> >> Just select the lines you would like to add, and than you can stage >> them at once. > > I tried that last night on my home laptop and it didn't work. Trying > it now at work, it indeed does work. Clearly my git versions are > different - when I thought they were the same. Thanks for the help.
Otherwise, "git add -p", 'e' for 'e'dit, and delete the parts you don't want.
-- Matthieu Moy http://www-verimag.imag.fr/~moy/