Re: git-kill: rewrite history removing a commit

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

 



> When I find master~8 and master~9 to be undesirable, I would do:
> 
> 	$ git rebase --onto master~10 master~8
> 
> which rebuilds master~7 and onward on top of master~10, thereby
> dropping two commits.

That's good to know.
So it turns out I can just rewrite mine as a one-liner:
git-rebase --onto $1~1 $1

Thanks,

-- 
MST
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]