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

Re: git clone / git pull to USB memory stick (FAT) and symlinks

From
Junio C Hamano <gitster@pobox.com>
Date
Nov 11, 2010, 17:54 UTC
Message-ID
<7vk4kjhhjh.fsf@alter.siamese.dyndns.org>
In-Reply-To
<ibh605$adm$1@dough.gmane.org>
Gelonida <gelonida@gmail.com> writes:
> I thought about cloning a remote git repository onto the stick
> and performing
> - regular pulls in order to update the USB stick
> - occasional pushes in orderto publish changes performed on the stick.

... missing is the reason why this is done to a USB memory stick. More specifically,...

> 1.) Ignore skip / symlinks
> 2.) Avoiding file permission issues: Is this sufficient

These become non-issues _if_ the reason you are putting this on an USB stick is to safekeep and sneakernet the project data, and are not interested in having a working tree on the stick, which I often find is the use case after grilling people who ask about placing git repositories on an USB stick.

And the commands to interact with such a repository without a working tree are to "push" (into it), and "fetch" (from it). IOW, you do not "pull" into USB stick.

If you do need a working tree on the stick, and the stick has a FAT derived filesystem (which would be the most common), then you would need

> git config --add core.fileMode false
and perhaps "core.symlinks false" also would help
Previous: GelonidaNext: Gelonida
Message 2 of 7 in “git clone / git pull to USB memory stick (FAT) and symlinks”
  1. GelonidaNov 11, 2010
  2. Junio C HamanoNov 11, 2010
  3. GelonidaNov 11, 2010
  4. GelonidaNov 11, 2010
  5. GelonidaNov 11, 2010
  6. Ferry HubertsNov 12, 2010
  7. Santi BéjarNov 12, 2010

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.