Tuesday 15 March 2011

git merge - Merging two repositories with the github API -


is a method of merge into Okoku.

Is this method (or some other)

I tried:

  client.merge ('user1 / repo', 'master' 'User2: master')  

/ code>

and

  client.merge ('user1 / repo', 'master', 'user2 / Master ')   

But does this seem to work ??

You can merge only the branches, the stock is not from the other, or if another is a thorn You can do this:

  repo = client.repository ('user2 / repo') system "git clone # {repo ['git_url']}" # this could be wrong, I Never has the directory system "GIT checkout # {branch}" system "GIT push git@github.com: user1 / repo # {branch}" client.merge ('user1 / repo', 'master', 'alt_branch')    

No comments:

Post a Comment