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

Re: Tip: avoiding net overhead using git over sshfs

From
Johannes Sixt <j.sixt@viscovery.net>
Date
Oct 23, 2008, 12:54 UTC
Message-ID
<490073F8.6080509@viscovery.net>
In-Reply-To
<a2075f4c0810230451lefff6ffnc283f4078eff9f9c@mail.gmail.com>
Felipe Carvalho Oliveira schrieb:
Show 10 quoted lines
> On Thu, Oct 23, 2008 at 7:00 AM, Matthieu Moy <Matthieu.Moy@imag.fr> wrote:
>> I think you'd better work locally, and push to the sshfs directory
>> from time to time. Then, you'd both have working tree and .git locally
>> and fast, while keeping the safety of replicating to your ssh server.
> 
> I can't use git-push as I explained before.
> I use git as a deployment tool in this case.
> I work locallly and use git-pull to sync my local repo and the
> "production"(server).
> Git works better than a manual (S)FTP sync.

Then how about this: You keep your repository local, and you also hack locally. When it's time to push your changes to the production server, you do this:

  $ GIT_INDEX_FILE=.git/index.published \
    GIT_WORK_TREE=/sshfs-mount/on/production/server \
    git reset --hard
This will update only files that changed since you did this the last time.
Disclaimer: I didn't try this myself.
-- Hannes
Previous: Felipe Carvalho OliveiraNext: Matthieu Moy
Message 4 of 5 in “Tip: avoiding net overhead using git over sshfs”
  1. Felipe Carvalho OliveiraOct 23, 2008
  2. Michael J GruberOct 23, 2008
  3. Felipe Carvalho OliveiraOct 23, 2008
  4. Johannes SixtOct 23, 2008
  5. Matthieu MoyOct 23, 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.