Jump to content

a stupidly hard, easy git question ?


antz

Recommended Posts

I have been trying to get this to work for days without any luck:-

I am trying to clone the mast branch of Repo A into a branch of another Repo.

i.e.

Repo A/Master ==> Repo B/Stage1

I can't seem to get it to work, any ideas anyone ?

Link to comment
Share on other sites

Don't feel to bad there Antz, Just before I asked about the Woltk repo I went though a nightmare with cmangos version...I couldn't get it to clone,pull, or anything else with GITPreview and ended up getting a zipped copy to play around with till you got the repo up... It looks like GITHub has there repos locked up ;) now I'm looking to get your Repo in so I can compile and get my server up!

BTW does the repo still have the Action House in it? because the cmangos version doesn't and the other part is does Blueboy's Player Bot still work with this Repo or am I going to need to Fiddle F**k it?

Link to comment
Share on other sites

Don't feel to bad there Antz, Just before I asked about the Woltk repo I went though a nightmare with cmangos version...I couldn't get it to clone,pull, or anything else with GITPreview and ended up getting a zipped copy to play around with till you got the repo up... It looks like GITHub has there repos locked up ;) now I'm looking to get your Repo in so I can compile and get my server up!

BTW does the repo still have the Action House in it? because the cmangos version doesn't and the other part is does Blueboy's Player Bot still work with this Repo or am I going to need to Fiddle F**k it?

Yes and Yes

Link to comment
Share on other sites

  • 2 weeks later...

I don't know if you have solved this already.

But if anyone wants to know a solution to it.

Here it is.

($ git remote add <remote> <remote url>)

repoA$ git remote add repoB [email protected]:repoB

repoA$ git push repoB master:stage1 // <local branch name>:<remote branch name>

and then we change to repoB.

repoB$ git pull

repoB$ git branch stage1 origin/stage1

repoB$ git checkout stage1

repoB$ git branch --set-upstream-to origin/stage1

verify...

repoB$ git branch -av

Alternative solution from repoB.

repoB$ git remote add repoA [email protected]:repoA

repoB$ git branch stage1 repoA/master

So yeah we got a local branch stage1 based on repoA's master.

But i want Co-op!

repoB$ git push origin stage1

repoB$ git checkout stage1

repoB$ git branch --set-upstream-to origin/stage1

verify...

repoB$ git branch -av

-------------------------------

I guess it's a fork.

Otherwise if you have two differnt history trees, you're gonna have a bad time.

And there is no real use for it.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use