Multiple branches with git?
Anish N
aanishn at gmail.com
Thu Dec 18 14:23:11 UTC 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.
> With
> 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
> a
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> ...
Push your modifications with,
git push origin refs/heads/<local branch name>:refs/heads/<remote branch name>
Regards
Anish
More information about the Openembedded-users
mailing list