* Special branch for remote
@ 2011-07-27 8:18 Paulo J. Matos
2011-07-27 14:35 ` Phil Hord
0 siblings, 1 reply; 3+ messages in thread
From: Paulo J. Matos @ 2011-07-27 8:18 UTC (permalink / raw)
To: git
Hi all,
I have a huge repository for a software I am developing. In it I have
source code, docs, experiments, tests, etc. However, I want to push only
the src/ to the github remote, nothing else. What's the best way to
achieve this. Do I need to simply create a new branch and then push the
new branch to github or there's anything else involved that I need to know?
Cheers,
--
PMatos
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Special branch for remote
2011-07-27 8:18 Special branch for remote Paulo J. Matos
@ 2011-07-27 14:35 ` Phil Hord
2011-07-27 14:36 ` Paulo J. Matos
0 siblings, 1 reply; 3+ messages in thread
From: Phil Hord @ 2011-07-27 14:35 UTC (permalink / raw)
To: Paulo J. Matos; +Cc: git
On 07/27/2011 04:18 AM, Paulo J. Matos wrote:
> Hi all,
>
> I have a huge repository for a software I am developing. In it I have
> source code, docs, experiments, tests, etc. However, I want to push
> only the src/ to the github remote, nothing else. What's the best way
> to achieve this. Do I need to simply create a new branch and then push
> the new branch to github or there's anything else involved that I need
> to know?
>
Yes, you can do this with branches. See [1] for an example of a similar
workflow.
You can also manage this with submodules [2] or subtree-merge [3].
I prefer submodules since it keeps the huge stuff (docs and bins) away
from my source code and makes my source code repo much more responsive.
[1] http://www.braintreepayments.com/devblog/our-git-workflow
[2] http://progit.org/book/ch6-6.html
[3] http://progit.org/book/ch6-7.html
HTH,
Phil
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Special branch for remote
2011-07-27 14:35 ` Phil Hord
@ 2011-07-27 14:36 ` Paulo J. Matos
0 siblings, 0 replies; 3+ messages in thread
From: Paulo J. Matos @ 2011-07-27 14:36 UTC (permalink / raw)
To: git
On 27/07/11 15:35, Phil Hord wrote:
>
> You can also manage this with submodules [2] or subtree-merge [3].
>
> I prefer submodules since it keeps the huge stuff (docs and bins) away
> from my source code and makes my source code repo much more responsive.
>
Thanks Phil, I will be looking at this solution then.
Cheers,
--
PMatos
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-07-27 14:55 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-27 8:18 Special branch for remote Paulo J. Matos
2011-07-27 14:35 ` Phil Hord
2011-07-27 14:36 ` Paulo J. Matos
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).