Solved

Git: How to push a branch to a different remote

Posted on 2012-03-25
3
714 Views
Last Modified: 2013-11-25
Hi, experts,

I have an open source project, and I want to have my closed branch within this project. I can push it to a different remote, for example, I can have my open source branches on github, and my closed branches on bitbucket. Would that work? Is there a better way, perhaps with forking?

Thank you,
Mark

PS. Both projects are mine, I just don't want to open source some part of it.
0
Comment
Question by:kerzner
3 Comments
 
LVL 1

Author Comment

by:kerzner
ID: 37779757
Well, you can do this with forks, and perhaps that is what I should do.
0
 
LVL 24

Accepted Solution

by:
johanntagle earned 500 total points
ID: 37780331
Both can work.  For the additional repo, the following should do:

git remote add -t branch_name name_for_other_repo other_repo_url
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to get all the API from website? 11 106
How to perform Bulk Edits in Visual Studio TFS 2015 2 24
ejb stateless example 2 27
Using Third Party DLL with Access VBA 14 41
A short article about a problem I had getting the GPS LocationListener working.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question