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

git push refspec problem

From
JJames <jtp@nc.rr.com>
Date
Nov 7, 2007, 15:01 UTC
Message-ID
<7B37E361-9606-447C-B853-001182688AFA@nc.rr.com>
Hi,

I'm trying to set up my git configuration file in one of my projects so that I can do a simple "git push" to update my project on the git server.

Currently, I run the following command to push my updates (and it works just fine):

git push james@my.server.com:~/scm/git/project.git/
In my .git/config file, I've added a line for push, as follows:
[remote "origin"]
         url = git://my.server.com/project.git
         fetch = +refs/heads/*:refs/remotes/origin/*
         push = ssh://james@my.server.com/home/james/scm/git/ 
project.git/
When I run a "git push", it comes back with this error:
fatal: remote part of refspec is not a valid name in ssh://james@my.server.com/home/james/scm/git/project.git/
I've looked at this git push documentation:
http://www.kernel.org/pub/software/scm/git/docs/git-push.html

and it seems like my refspec is indeed correct. (or so I thought ;)) Any ideas on what I'm doing wrong?

Thanks! .james

Next: Johannes Schindelin
Message 1 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.