Re: Reworking a patch in git.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Manish Katiyar, 17.02.2009:
> On Tue, Feb 17, 2009 at 1:49 PM, Henrik Austad <henrik@xxxxxxxxx> wrote:
> > You can do this several ways. One way, if you need to do a lot of reworking on
> > a particular commit, and you do not want to change the order of the commits:
> > git checkout -b tmp_branch target_commit_id
> > <do you stuff>
> > git add -u
> > git commit --amend (to squash the commit on top of the original)
> > git merge master
> 
> Thanks a lot Henrik,
> 
> I will try these steps, once I am at home and let you know if it
> solves my problem.
> 
> Thanks -
> Manish
> 
> >
> > or, if you do not really care for the order of the commits, just the commits

I'm not sure what you mean with this, Henrik, since the order can be
changed in interactive rebase.

> > themself, have a look at git rebase --interactive

but I'm sure, this "git rebase --interactive" will solve your problem,
Manish.

Markus


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux