# can you push from a bare repository??

3 messages from 2008-06-27 to 2008-06-27. Participants: Doug Reiland, Jon Loeliger.
Thread: https://gitlist.dev/t/14187

## Doug Reiland, 2008-06-27 17:58

Subject: can you push from a bare repository??
Message-ID: <6844644e0806271058r738e300fxf10f50b4ad29a93c@mail.gmail.com>
URL: https://gitlist.dev/e/6844644e0806271058r738e300fxf10f50b4ad29a93c%40mail.gmail.com

```
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, 2008-06-27 18:18

Subject: Re: can you push from a bare repository??
Message-ID: <48652F01.4080309@freescale.com>
URL: https://gitlist.dev/e/48652F01.4080309%40freescale.com
In-Reply-To: <6844644e0806271058r738e300fxf10f50b4ad29a93c@mail.gmail.com>

```
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

```

## Doug Reiland, 2008-06-27 18:41

Subject: Re: can you push from a bare repository??
Message-ID: <6844644e0806271141q6b90901al2e9f40509f1c3539@mail.gmail.com>
URL: https://gitlist.dev/e/6844644e0806271141q6b90901al2e9f40509f1c3539%40mail.gmail.com
In-Reply-To: <48652F01.4080309@freescale.com>

```
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:
> 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
>

```
