[git-users] Re: Pushing to master from Experimental
On Aug 21, 6:03 pm, David Doria 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.
[git-users] Re: Pushing to master from Experimental
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 wrote: > On Aug 21, 5:04 pm, David Doria 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: > > "... > The format of a parameter is an optional plus +, followed by > the source ref , followed by a colon :, followed by the > destination ref . It is used to specify with what object > the ref in the remote repository is to be updated. > ... > If : is omitted, the same ref as 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
On Aug 21, 5:04 pm, David Doria 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: "... The format of a parameter is an optional plus +, followed by the source ref , followed by a colon :, followed by the destination ref . It is used to specify with what object the ref in the remote repository is to be updated. ... If : is omitted, the same ref as 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.