Re: how to rebase backwards
- From
- bill lam <cbill.lam@gmail.com>
- Date
- Nov 3, 2009, 09:37 UTC
- Message-ID
- <20091103093716.GD7117@debian.b2j>
- In-Reply-To
- <7vocnkt5o4.fsf@alter.siamese.dyndns.org>
Thank you for detail explanation. From what you described, I begin with master commit D, $ git checkout -b deploy $ git commit --allow-empty -m deploy
E
/^ deploy
---A---B---C---D
^ master
$ git rebase -i A v deploy
B'--C'--D'--E'
/
---A---B---C---D
^ mastersince E is an empty commit, I suppose content of D' E' and D are identical at this point. Is that correct?
If several months later, I forget which is the common ancestor for master and deploy, how do I generate the above graph or identify commit A as the common ancestor for these two branches?
-- regards, ==================================================== GPG key 1024D/4434BAB3 2008-08-24 gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3