threads / discuss / 14187

can you push from a bare repository??

Subject: can you push from a bare repository??

## tl;dr

3 messages between Jun 27, 2008 and Jun 27, 2008.

replies: 2people: 2as markdown or json

Doug Reiland· Jun 27, 2008, 17:58 UTC · lore

I have a main repository called main I create a bare clone from main call bare_clone I create clone from bare_clone called work_repository_1

I do my work in work_repository_1, commit, and push changes to bare_clone
How to a push the changes in bare_clone into main??

thanks in advance, Doug

Jon Loeliger· Jun 27, 2008, 18:18 UTC · re: Doug Reiland · lore

Re: can you push from a bare repository??

Doug Reiland wrote:
Show 8 quoted lines
> I have a main repository called main
> I create a bare clone from main call bare_clone
> I create clone from bare_clone called work_repository_1
> 
> I do my work in work_repository_1, commit, and push changes to bare_clone
> 
> How to a push the changes in bare_clone into main??
> 

Go to your main repo and configure up a new remote using "git remote add' pointing to the bare repo. Then fetch from that remote!

jdl
Doug Reiland· Jun 27, 2008, 18:41 UTC · re: Jon Loeliger · lore

Re: can you push from a bare repository??

Is that the only way? It wouldn't work for what I want to do. I will have many users creating these environments and I wouldn't want them all creating those remote branches on the main server.

On Fri, Jun 27, 2008 at 2:18 PM, Jon Loeliger <jdl@freescale.com> wrote:
Show 17 quoted lines
> Doug Reiland wrote:
>>
>> I have a main repository called main
>> I create a bare clone from main call bare_clone
>> I create clone from bare_clone called work_repository_1
>>
>> I do my work in work_repository_1, commit, and push changes to bare_clone
>>
>> How to a push the changes in bare_clone into main??
>>
>
> Go to your main repo and configure up a new remote
> using "git remote add' pointing to the bare repo.
> Then fetch from that remote!
>
> jdl
>

← back to recent threads