From: Miguel Ramos <mail@miguel.ramos.name>
To: Jakub Narebski <jnareb@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: Using a git repository on the root directory
Date: Sat, 17 Apr 2010 12:39:57 +0100 [thread overview]
Message-ID: <y2y3e2876431004170439o15fbe62dv612157226d978fa5@mail.gmail.com> (raw)
In-Reply-To: <m3zl12eaif.fsf@localhost.localdomain>
2010/4/17 Jakub Narebski <jnareb@gmail.com>:
> Miguel Ramos <mail@miguel.ramos.name> writes:
>
>> 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.
>
> The 'nd/root-git' branch (merged into 'master' as v1.7.1-rc0~89)
> might have addressed the issue you are seeing.
>
> --
> Jakub Narebski
> Poland
> ShadeHawk on #git
Yes, that's exactly it.
I tried out v1.7.1-rc1 and it works.
Good thing this got merged into the main branch.
I'm putting * in /.git/info/exclude, so adding files to the repository
must be explicit.
It seems to work, but if anyone knows of any downside to doing this,
please tell me, I'm new to git.
Thanks
--
Miguel Ramos <mail@miguel.ramos.name>
PGP A006A14C
prev parent reply other threads:[~2010-04-17 11:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=y2y3e2876431004170439o15fbe62dv612157226d978fa5@mail.gmail.com \
--to=mail@miguel.ramos.name \
--cc=git@vger.kernel.org \
--cc=jnareb@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).