[rancid] Rancid and Git
Crowe, David
crowed at bendbroadband.net
Fri Jul 18 21:57:07 UTC 2014
On Jul 18, 2014, at 2:18 PM, John Heasley <heas at shrubbery.net> wrote:
> Am Jul 18, 2014 um 2:05 PM schrieb "Crowe, David" <crowed at bendbroadband.net>:
>>
>> i would agree with a single repo being the best approach.
>>
>> regarding the automatic search for changed files (i'll include untracked files in here), the additions to .gitignore helps with this tremendously.
>>
>
> I do not like its global behavior, but...
>
that is a bit of a pain but once you add the extraneous files and patterns to .gitignore file i've not had to touch it in a long time. having a separate repo for each group could make that a bit cleaner.
> Can you tell me what is wrong with the second approach i described?
>
if i understand what you tried, the "remote" can't be within/under the same directory tree as $BASEDIR if that is the root of an existing git repo.
if you stay with the single repo strategy, doing "git reset --hard $BASEDIR/group" is the best way to get back to the last known good repo copy for any group.
David
More information about the Rancid-discuss
mailing list