Thread (4 messages) flat view 4 messages, 2 authors, 2016-06-15

Newbie questions about moving around repositories

From: Ed Schofield <hidden>
Date: 2016-06-15 22:43:17

Hi all,

I've recently started using git to manage my own patchsets for a
public CVS repository that I don't have write access to. I have a
couple of newbie questions, please:

1. I would like to move my repository (including all branches) from
directory A to a directory B on a different filesystem. Can I use
git-clone for this? It seems that git-clone creates remote-tracking
branches, but I want to keep all of the branches as local branches so
I can remove the original repository.

2. I can't just move the entire directory A, because I get

Error in startup script: error: object directory
A/../A-cvs-git/.git/objects does not exist; check
.git/objects/info/alternates

I think I originally created the repository by cloning from my
A-cvs-git/ directory with git-clone --shared, but I don't quite
remember. So I suppose I want a way to stop using the alternates
mechanism and make my repository self-contained in one directory. Is
this possible? Will I then be free to move the directory?

I'd appreciate any advice!

-- Ed
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help