git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: concerns about git

From
Ciprian Dorin Craciun <ciprian.craciun@gmail.com>
Date
Oct 14, 2008, 11:25 UTC
Message-ID
<8e04b5820810140425j14c1c7efm2346a967ad6a070e@mail.gmail.com>
In-Reply-To
<82c87da00810131251i52d10170h5c1991e2da0bd208@mail.gmail.com>
On Mon, Oct 13, 2008 at 10:51 PM, Brandon <siamesedream01@gmail.com> wrote:
Show 34 quoted lines
> You can use "git config core.worktree <location>" to create a ".git"
> folder that manages a working copy in another location.
>
> I know some of the GUI tools don't support this though so I would only
> use it if truly necessary  . (For example a using git to manage a
> mapped network drive, it would be faster to keep the ".git" folder on
> the local harddrive)
>
> More documentation here: http://www.kernel.org/pub/software/scm/git/docs/
>
> On Mon, Oct 13, 2008 at 2:40 PM, David Tweed <david.tweed@gmail.com> wrote:
>> On Mon, Oct 13, 2008 at 7:19 PM, Shawn O. Pearce <spearce@spearce.org> wrote:
>>>  # then every once in a while, or from a cron job
>>>  $ git push --all backup
>>>
>>> Of course since Git is distributed you can you use this same approach
>>> to make backups to other systems.  You can even edit the .git/config
>>> to give the [remote "backup"] section more than one url line, so
>>> that "git push --all backup" will send updated copies to multiple
>>> locations at once.
>>
>> Another advantage of 'git push'ing to another repository (possibly via
>> cron) as backup is that (for technical reasons) git push has to
>> 'parse' the new changes to your repository in order to push, so it is
>> likely to spot corruption (eg, dying disk) at that time and when you
>> can decide what to do about it. (I have enough backups all over the
>> place that I don't worry about not having a 'copy' of any stuff I care
>> about, but that there'll be some fatal corruption I don't notice
>> immediately that then gets propagated everywhere rendering them
>> useless.)
>>
>> --
>> cheers, dave tweed__________________________
>> david.tweed@gmail.com
    I have the same problem as David, but I manage it by using a
symlink. That is my .git folder is a symlink to the real repository
(possibly on another partition). (So far I had no problems with this
setup.)
    Ciprian Dorin Craciun.
Previous: Brandon
Message 5 of 5 in “concerns about git”
  1. deepwinterOct 13, 2008
  2. Shawn O. PearceOct 13, 2008
  3. David TweedOct 13, 2008
  4. BrandonOct 13, 2008
  5. Ciprian Dorin CraciunOct 14, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.