Re: keeping track of where a patch begins
- From
Nicolas Pitre <nico@fluxnic.net>
- Date
- Oct 21, 2009, 18:14 UTC
- Message-ID
- <alpine.LFD.2.00.0910211402490.21460@xanadu.home>
- In-Reply-To
- <3a69fa7c0910210745r311cf18xf966f5c63650cde6@mail.gmail.com>
On Wed, 21 Oct 2009, E R wrote:
> What solutions have you come up with to either to catch or prevent > this from happening? It is possible to determine what node a branch > started from?
This can be determined by looking at the gitk output.
Also 'git merge-base' can give you that node, given the main branch and the topic branch. See documentation about git-merge-base.
Then if you need to move a branch to another starting node, then 'git rebase' is what you need (again the git-rebase documentation is pretty detailed).
Nicolas