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

Re: git push refspec problem

From
JJames <jtp@nc.rr.com>
Date
Nov 7, 2007, 15:23 UTC
Message-ID
<EA230407-45F1-4F7E-8415-A43ECF940856@nc.rr.com>
In-Reply-To
<20071107152003.GL18057@artemis.corp>
On Nov 7, 2007, at 10:20 AM, Pierre Habouzit wrote:
Show 21 quoted lines
> On Wed, Nov 07, 2007 at 03:11:46PM +0000, Johannes Schindelin wrote:
>> Hi,
>>
>> On Wed, 7 Nov 2007, James wrote:
>>
>>>       fetch = +refs/heads/*:refs/remotes/origin/*
>>
>> This is a refspec.
>>
>>>       push = ssh://james@my.server.com/home/james/scm/git/project.git/
>>
>> This is a URL.  It does not specify any refs.  But "push =" expects  
>> a URL.
>>
>> You probably want to setup a different remote if you want to push  
>> to a
>> different URL than you are fetching from.
>
>  Oh, there is no way to pull through git:// and push to ssh://
> perfectly knowint it's the same physical repository so that the fetch
> doesn't have the ssh-handhshake-overhead ?

There has to be *some* way of pulling through git and pushing through ssh with a simple "git push". :-P I'm doing it manually, after all. I could have sworn I've read how to do its somewhere but have since forgotten.

> -- 
> ·O·  Pierre Habouzit
> ··O                                                madcoder@debian.org
> OOO                                                http://www.madism.org
Previous: Pierre HabouzitNext: Johannes Gilger
Message 4 of 10 in “git push refspec problem”
  1. JamesNov 7, 2007
  2. Johannes SchindelinNov 7, 2007
  3. Pierre HabouzitNov 7, 2007
  4. JamesNov 7, 2007
  5. Johannes GilgerNov 7, 2007
  6. Pierre HabouzitNov 7, 2007
  7. Johannes GilgerNov 7, 2007
  8. JamesNov 7, 2007
  9. Daniel BarkalowNov 7, 2007
  10. Johannes SchindelinNov 7, 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.