On Aug 21, 5:04 pm, David Doria <daviddo...@gmail.com> wrote:

[...]
> However, if I
> git clone 'repo'
> git branch Experimental
> git checkout Experimental
>
> do some work
>
> git push origin master
>
> I get
> error: failed to push some refs to 'repo'
>
> Then if I do
>
> git pull --rebase
> git push origin master
>
> I get the same
>
> error: failed to push some refs to 'repo'
>
> Is there something that needs to be done different if working not
> directly on the master branch?

Let's quote the git-push manual:

"<refspec>...
The format of a <refspec> parameter is an optional plus +, followed by
the source ref <src>, followed by a colon :, followed by the
destination ref <dst>. It is used to specify with what <src> object
the <dst> ref in the remote repository is to be updated.
...
If :<dst> is omitted, the same ref as <src> will be updated."

Now, when you do
git push origin master
Git tries to update the remote branch "master" using the local branch
"master".

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.

Reply via email to