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

Re: Newbie experience with push over ssh

From
Bill Lear <rael@zopyra.com>
Date
Feb 14, 2007, 16:34 UTC
Message-ID
<17875.14859.177000.558634@lisa.zopyra.com>
In-Reply-To
<17875.14305.910866.273778@lisa.zopyra.com>
On Wednesday, February 14, 2007 at 10:25:05 (-0600) Bill Lear writes:
Show 8 quoted lines
>...
>If you must ...
>
>% cat ~/.gitconfig
>[alias]
>	scp !scp
>	rcp !rcp
>% git scp -rp . me@remotehost:/directory

Actually that was a bit tongue-in-cheek, syntactically incorrect (I believe missing '='), I'm not actually sure it will work, nor if the patch for this actually got in to 1.5.0. The patch I saw does not appear to pass the rest of the command line to the system call, but perhaps I'm wrong and someone else can confirm.

If the patch to do this is reasonable, I would expect the command:
% git scp -rp . me@remotehost:/directory
to expand to:
% scp -rp . me@remotehost:/directory
and if not, I think it should, just as when I have:
[alias]
	pub = push /my/repo
and:
% git pub branch:branch
expands to:
% git push /my/repo branch:branch
Bill
Previous: Joseph WakelingNext: Joseph Wakeling
Message 6 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.