git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Using a git repository on the root directory
@ 2010-04-16 20:44 Miguel Ramos
  2010-04-17  4:17 ` Gabriel Filion
  2010-04-17  8:42 ` Jakub Narebski
  0 siblings, 2 replies; 9+ messages in thread
From: Miguel Ramos @ 2010-04-16 20:44 UTC (permalink / raw)
  To: git

Hi,

Is it possible with git to use a git repository on the root directory?
I'm trying to replace subversion doing this.
I have a populated repository elsewhere, I can clone this to an empty
directory and then move .git to / to work around the demand that the
target directory is empty and at the same time avoid overwriting
files.
I used this method before to get my home directory versioned with
success, so far.

When I'm on the root directory, things seem to work minimally. I do
git status, etc, and get the expected results.
However, if I change say to /etc, or any other directory, for that
matter, then git status tells me that every file in the repository is
deleted.
Adding files doesn't work, nothing works at all.

I know this is an unforeseen use of git, however, unforeseen might not
imply forbidden.
I'm pretty disappointed I couldn't get it working.

So the motivation for this posting is twofold:
- Is this possible in some other way, or did I do something wrong (I'm
new to git) ?
- I find the resulting behaviour pretty curious, maybe someone who
knows how git works can explain why this is the resulting behaviour.

Thanks,

-- 
Miguel Ramos <mail@miguel.ramos.name>
PGP A006A14C

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-04-17 12:55 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-16 20:44 Using a git repository on the root directory Miguel Ramos
2010-04-17  4:17 ` Gabriel Filion
2010-04-17  4:45   ` david
2010-04-17 11:15     ` Miguel Ramos
2010-04-17 11:48       ` david
2010-04-17 11:58         ` Miguel Ramos
2010-04-17 12:55           ` david
2010-04-17  8:42 ` Jakub Narebski
2010-04-17 11:39   ` Miguel Ramos

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).