login
Header Space

 
 

git push refspec problem

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <git@...>
Date: Wednesday, November 7, 2007 - 11:01 am

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
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
git push refspec problem, James, (Wed Nov 7, 11:01 am)
Re: git push refspec problem, Johannes Schindelin, (Wed Nov 7, 11:11 am)
Re: git push refspec problem, Johannes Gilger, (Wed Nov 7, 11:22 am)
Re: git push refspec problem, Johannes Schindelin, (Wed Nov 7, 11:39 am)
Re: git push refspec problem, James, (Wed Nov 7, 11:30 am)
Re: git push refspec problem, Daniel Barkalow, (Wed Nov 7, 4:40 pm)
Re: git push refspec problem, Pierre Habouzit, (Wed Nov 7, 11:20 am)
Re: git push refspec problem, James, (Wed Nov 7, 11:23 am)
Re: git push refspec problem, Johannes Gilger, (Wed Nov 7, 11:26 am)
Re: git push refspec problem, Pierre Habouzit, (Wed Nov 7, 11:38 am)
speck-geostationary