Newbie question about making a bare repository
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.
Signature · 2 lines
D. Stuart Freeman Georgia Institute of Technology
begin:vcard
fn:D. Stuart Freeman
n:Freeman;Douglas
email;internet:[email protected]
tel;work:(404)385-1473
x-mozilla-html:FALSE
version:2.1
end:vcard
Quoted 4 lines · D. Stuart Freeman
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.
Quoted 9 lines · D. Stuart Freeman
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?
Signature · 2 lines
D. Stuart Freeman Georgia Institute of Technology
begin:vcard
fn:D. Stuart Freeman
n:Freeman;Douglas
email;internet:[email protected]
tel;work:(404)385-1473
x-mozilla-html:FALSE
version:2.1
end:vcard