[git-users] Re: Pushing to master from Experimental

2010-08-21 Thread Konstantin Khomoutov
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.



[git-users] Re: Pushing to master from Experimental

2010-08-21 Thread David Doria
Ah yes, always so clear... haha

So I need to do

git push origin Experimental:master

?

Thanks,

David

On Aug 21, 10:01 am, Konstantin Khomoutov khomou...@gmail.com wrote:
 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.



[git-users] Re: Pushing to master from Experimental

2010-08-21 Thread Konstantin Khomoutov
On Aug 21, 6:03 pm, David Doria daviddo...@gmail.com wrote:

 Ah yes, always so clear... haha
 So I need to do
 git push origin Experimental:master
Yes.

-- 
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.