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

git-push hook to update remote working copy safely

From
Sam Watkins <swatkins@fastmail.fm>
Date
Feb 23, 2007, 08:51 UTC
Message-ID
<1172220709.10221.1176113191@webmail.messagingengine.com>
peace,

I'm looking for a command that will update the remote working copy after a "git push", without damaging any changes that may have been made to the working copy. I haven't used git barely at all, hoping this is an okay place to ask about this. I can put the command into the push hook myself, I just don't know what command does that!

This is one of the last "pieces" needed for a hopefully useful application I'm working on with a friend, which uses git for storage and file transfer.

Sam
Next: Junio C Hamano
Message 1 of 7 in “git-push hook to update remote working copy safely”
  1. Sam WatkinsFeb 23, 2007
  2. Junio C HamanoFeb 23, 2007
  3. Sam WatkinsFeb 23, 2007
  4. Johannes SchindelinFeb 23, 2007
  5. Sam WatkinsFeb 23, 2007
  6. Johannes SchindelinFeb 23, 2007
  7. Junio C HamanoFeb 23, 2007

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.