[openib-general] fail to git push

Sasha Khapyorsky sashak at voltaire.com
Thu Nov 30 10:17:26 PST 2006


On 14:29 Thu 30 Nov     , Eitan Zahavi wrote:
> Sasha Khapyorsky wrote:
> >On Thu, 2006-11-30 at 13:26 +0200, Eitan Zahavi wrote:
> >  
> >>Hi Sasha
> >>
> >>What do you mean by :
> >>    
> >>>And if you want to do 'push origin', you need 'Push: ' line
> >>>in .git/remotes/origin file.
> >>>      
> >
> >As already suggested by Michael something like:
> >
> >Push: refs/heads/master:refs/heads/master
> >  
> What I meant was: if I want to work on the trunk should I use "origin" 
> or "master" ?

Now you are referencing 'origin' and 'master' branches now. Convensionally
'git clone/fetch/pull' updates your 'origin' branch, and you are working
with 'master' branch.

.git/remotes/origin is something else - it is "shortcut" to remote
git repository.

Sasha

> >  
> >>>  
> >>>      
> >>I just want to push to the main trunk in the git repo.
> >>
> >>I thought I should do it to "origin".
> >>Should I use some other command?
> >>    
> >
> >The command is ok, you just need to tell to git which references you
> >want to push - you can do it by adding 'Push: ' line to
> >your .git/remotes/origin file (You can look at 'REMOTES' section from
> >'man git-push').
> >
> >Sasha
> >
> >
> >_______________________________________________
> >openib-general mailing list
> >openib-general at openib.org
> >http://openib.org/mailman/listinfo/openib-general
> >
> >To unsubscribe, please visit 
> >http://openib.org/mailman/listinfo/openib-general
> >  
> 




More information about the general mailing list