Multiple branches with git?
aanishn at gmail.com
Thu Dec 18 15:23:11 CET 2008
On Wed, Dec 17, 2008 at 7:22 PM, Wolf, Josef <josef.wolf at siemens.com> wrote:
> I am wondering how to check out multiple branches of OE concurrently.
> monotone, this was pretty straight-forward: I downloaded the database
> and then
> simply checked out the desired branches into separate working copies.
> With git, I got somewhat lost, because git does not have the concept of
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
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> ...
Push your modifications with,
git push origin refs/heads/<local branch name>:refs/heads/<remote branch name>
More information about the Openembedded-users