# Newbie question about making a bare repository

3 messages from 2008-06-16 to 2008-06-20. Participants: D. Stuart Freeman, Miklos Vajna.
Thread: https://gitlist.dev/t/13982

## D. Stuart Freeman, 2008-06-16 18:57

Subject: Newbie question about making a bare repository
Message-ID: <4856B7A6.50508@et.gatech.edu>
URL: https://gitlist.dev/e/4856B7A6.50508%40et.gatech.edu

```
I have a repository that I made with 'git-svn clone' that I'd like to
make bare but retain the svn info.  Would I just change the "bare" in
.git/config to true?  Is there anything I have to do to remove the
working copy info?

I plan to do this so that a co-worker and I can clone the git repo, and
push our changes back to it, and maintain the "proxy" to svn from that
central location.

-- 
D. Stuart Freeman
Georgia Institute of Technology


begin:vcard
fn:D. Stuart Freeman
n:Freeman;Douglas
email;internet:stuart.freeman@et.gatech.edu
tel;work:(404)385-1473
x-mozilla-html:FALSE
version:2.1
end:vcard


```

## Miklos Vajna, 2008-06-16 20:57

Subject: Re: Newbie question about making a bare repository
Message-ID: <20080616205719.GI29404@genesis.frugalware.org>
URL: https://gitlist.dev/e/20080616205719.GI29404%40genesis.frugalware.org
In-Reply-To: <4856B7A6.50508@et.gatech.edu>

```
On Mon, Jun 16, 2008 at 02:57:42PM -0400, "D. Stuart Freeman" <stuart.freeman@et.gatech.edu> wrote:
> I have a repository that I made with 'git-svn clone' that I'd like to
> make bare but retain the svn info.  Would I just change the "bare" in
> .git/config to true?  Is there anything I have to do to remove the
> working copy info?

change it in foo/.git/config and mv foo/.git foo.git

also don't forget that you'll need 'git --bare svn foo' instead of 'git
svn foo' from now.

```

## D. Stuart Freeman, 2008-06-20 20:53

Subject: Re: Newbie question about making a bare repository
Message-ID: <485C18B2.1060801@et.gatech.edu>
URL: https://gitlist.dev/e/485C18B2.1060801%40et.gatech.edu
In-Reply-To: <4856B7A6.50508@et.gatech.edu>

```
D. Stuart Freeman wrote:
> I have a repository that I made with 'git-svn clone' that I'd like to
> make bare but retain the svn info.  Would I just change the "bare" in
> .git/config to true?  Is there anything I have to do to remove the
> working copy info?
> 
> I plan to do this so that a co-worker and I can clone the git repo, and
> push our changes back to it, and maintain the "proxy" to svn from that
> central location.
> 

I think I've found a flaw in my plan.  Now that the repo is bare I can't
get any changes from upstream.  I run 'git --bare svn fetch' and that
works, but then I have no way to rebase those changes into a local
branch because I don't have a working copy.  Is there a way to see a
remote repo's remotes, and merge/rebase from there?

-- 
D. Stuart Freeman
Georgia Institute of Technology


begin:vcard
fn:D. Stuart Freeman
n:Freeman;Douglas
email;internet:stuart.freeman@et.gatech.edu
tel;work:(404)385-1473
x-mozilla-html:FALSE
version:2.1
end:vcard


```
