threads / discuss / 13982

Newbie question about making a bare repository

Subject: Newbie question about making a bare repository

## tl;dr

3 messages between Jun 16, 2008 and Jun 20, 2008.

replies: 2people: 2as markdown or json

D. Stuart Freeman· Jun 16, 2008, 18:57 UTC · lore

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· Jun 16, 2008, 20:57 UTC · re: D. Stuart Freeman · lore

Re: Newbie question about making a bare repository

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· Jun 20, 2008, 20:53 UTC · re: D. Stuart Freeman · lore

Re: Newbie question about making a bare repository

D. Stuart Freeman wrote:
Show 9 quoted lines
> 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

← back to recent threads