[Olsr-dev] Possible to fix errors in git repo?

Henning Rogge (spam-protected)
Wed Jun 15 11:03:57 CEST 2011


On Wed June 15 2011 10:45:14 Ferry Huberts wrote:
> you'll want to do a git rebase -i and then remove all commits of the old
> tree that are not in your branch that you want to rebase: all commit
> sha's are different so removing the old commits is needed: you have to
> look up the common ancestor yourself.
> 
> example:
> 
> old:
> a-b-c-d-e-f (master)
>      \
>       u-v-w (your branch)
> 
> 
> new:
> k-l-m-n-o-p
> 
> git checkout your branch
> git rebase -i m
> 
> you'll (probably) get a list like:
> a
> b
> c
> u
> v
> w
> 
> and you'll have to remove a-b-c
> finally you can push your branch into the repo
You are aware that you are talking about 500+ commits to remove? I don't think 
"removing them by hand" is not a realistic sollution.

Henning Rogge
-- 
Diplom-Informatiker Henning Rogge , Fraunhofer-Institut für
Kommunikation, Informationsverarbeitung und Ergonomie FKIE
Kommunikationssysteme (KOM)
Neuenahrer Straße 20, 53343 Wachtberg, Germany
Telefon +49 228 9435-961,   Fax +49 228 9435 685
mailto:(spam-protected) http://www.fkie.fraunhofer.de
GPG: E1C6 0914 490B 3909 D944 F80D 4487 C67C 55EC CFE0




More information about the Olsr-dev mailing list