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

Re: Newbie experience with push over ssh

From
Nicolas Pitre <nico@cam.org>
Date
Feb 14, 2007, 18:03 UTC
Message-ID
<Pine.LNX.4.64.0702141253520.1757@xanadu.home>
In-Reply-To
<45D34B17.70602@webdrake.net>
On Wed, 14 Feb 2007, Joseph Wakeling wrote:
Show 8 quoted lines
> Nicolas Pitre wrote:
> > What would be the point if you don't have GIT on the remote system?
> > 
> > Just use rsync or scp to copy your code over and be happy.
> 
> For one thing, I might be making small changes or have unversioned files
> in my local directory that I don't want to copy.  I only want to push
> across the latest code in the branch.
Try this then:
  git archive --format=tar <branch_name> | ssh <remote_machine> tar -xf -

You can also use the --prefix= argument to git-archive in order to specify a subdirectory on the remote machine.

Nicolas
Previous: Jeff KingNext: Matthieu Moy
Message 14 of 18 in “Newbie experience with push over ssh”
  1. Matthieu MoyFeb 14, 2007
  2. Matthias LederhoferFeb 14, 2007
  3. Joseph WakelingFeb 14, 2007
  4. Bill LearFeb 14, 2007
  5. Joseph WakelingFeb 14, 2007
  6. Bill LearFeb 14, 2007
  7. Joseph WakelingFeb 14, 2007
  8. Bill LearFeb 14, 2007
  9. Matthieu MoyFeb 14, 2007
  10. Joseph WakelingFeb 14, 2007
  11. Nicolas PitreFeb 14, 2007
  12. Joseph WakelingFeb 14, 2007
  13. Jeff KingFeb 14, 2007
  14. Nicolas PitreFeb 14, 2007
  15. Matthieu MoyFeb 14, 2007
  16. Andreas EricssonFeb 15, 2007
  17. Matthias LederhoferFeb 14, 2007
  18. Joseph WakelingFeb 14, 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.