Multiple branches with git?

Wolf, Josef josef.wolf at siemens.com
Thu Dec 18 15:49:05 UTC 2008


Thanks for your answer, Anish!

Anish N wrote:

> I am not sure I understood your problem correctly, but won't this
> scenario solve your purpose ?
>
> get the local copy,
> git clone http://repo.or.cz/openembedded.git org.openembedded
> 
> create local braches for stable, dev
> cd org.openembedded
> git checkout -b stable origin/org.openembedded.stable
> git checkout -b dev origin/org.openembedded.dev
>
> you can then switch between the branches/commit code using,
> git checkout <branch name>
> git commit <file1> <file2> ...

This would be of no help because I want to be on multiple branches
simultanously.  E.g. be on org.openembedded.stable for epia board
at the same time as beeing on org.openembedded.dreambox for a
dreambox. After all, you can not switch to another branch while
the current branch is being compiled.




More information about the Openembedded-users mailing list