Starting from an existing code.google project, and having successfully pushed initial code.
I created a new branch on the local copy. I committed the changes for the branch and now I want to push the branch to code.google repo. I type this:
git push origin branch_name -v https://username:password@code.google.com/p/project-name/
But I get this error
fatal: remote part of refspec is not a valid name in https://username:password@code.google.com/p/project-name/
The syntax of the
pushcommand:In the simplest case,
<options>is empty,<repository>is typicallyorigin, and<refspec>is the name of your current branch:This assumes that you have created a remote named
origin, either by cloning a remote repository or using thegit remote add ...command. If you haven’t configured a remote, you can substitute the URL on the command line like this: