Solved

Git: How to push a branch to a different remote

Posted on 2012-03-25
3
692 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…
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…

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now