<br><br><div class="gmail_quote">On Wed, May 2, 2012 at 8:08 PM, Marc Delisle <span dir="ltr"><<a href="mailto:marc@infomarc.info" target="_blank">marc@infomarc.info</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Le 2012-05-02 10:32, Thilina Buddika Abeyrathna a écrit :<br>
<div><div class="h5">> On Wed, May 2, 2012 at 7:59 PM, Marc Delisle <<a href="mailto:marc@infomarc.info">marc@infomarc.info</a>> wrote:<br>
><br>
>> Le 2012-05-02 10:21, Thilina Buddika Abeyrathna a écrit :<br>
>>> On Wed, May 2, 2012 at 7:38 PM, Marc Delisle <<a href="mailto:marc@infomarc.info">marc@infomarc.info</a>> wrote:<br>
>>><br>
>>>> Le 2012-05-02 10:04, Thilina Buddika Abeyrathna a écrit :<br>
>>>>> On Wed, May 2, 2012 at 7:07 PM, Thilina Buddika Abeyrathna <<br>
>>>>> <a href="mailto:thilinaabeyrathna@gmail.com">thilinaabeyrathna@gmail.com</a>> wrote:<br>
>>>>><br>
>>>>>><br>
>>>>>><br>
>>>>>> On Wed, May 2, 2012 at 7:00 PM, Alex Marin <<a href="mailto:alex.ukf@gmail.com">alex.ukf@gmail.com</a>><br>
>> wrote:<br>
>>>>>><br>
>>>>>>> On Wed, May 2, 2012 at 4:09 PM, Thilina Buddika Abeyrathna<br>
>>>>>>> <<a href="mailto:thilinaabeyrathna@gmail.com">thilinaabeyrathna@gmail.com</a>> wrote:<br>
>>>>>>>> Hi Marc,<br>
>>>>>>>> I used following command to update my git repo in GitHub.<br>
>>>>>>>><br>
>>>>>>>> git remote add upstream git://<a href="http://github.com/thilinaa/phpmyadmin.git" target="_blank">github.com/thilinaa/phpmyadmin.git</a><br>
>>>>>>>><br>
>>>>>>>><br>
>>>>>>>> git fetch upstream<br>
>>>>>>>><br>
>>>>>>>> But it did not work for my repo. Please give me some suggestions.<br>
>>>>>>><br>
>>>>>>> Hi Thilina,<br>
>>>>>>><br>
>>>>>>> Your command adds your fork of phpmyadmin as a remote repo. I<br>
>>>>>>> assume you want to get the latest changes from the phpmyadmin<br>
>>>>>>> official repo. So you first have to add the remote phpmyadmin repo:<br>
>>>>>>>   git remote add upstream git://<a href="http://github.com/phpmyadmin/phpmyadmin.git" target="_blank">github.com/phpmyadmin/phpmyadmin.git</a><br>
>>>>>>> For getting the latest updates from there, you should use:<br>
>>>>>>>  git pull upstream [branch] (or git fetch as you mentioned).<br>
>>>>>>><br>
>>>>>>> And finally, if you want to push the changes to your fork, then you<br>
>>>> first<br>
>>>>>>> have to create your fork and add it as a remote repo:<br>
>>>>>>>   git remote add origin git://<a href="http://github.com/thilinaa/phpmyadmin.git" target="_blank">github.com/thilinaa/phpmyadmin.git</a><br>
>>>>>>> Then, you push with<br>
>>>>>>>   git push origin [branch]<br>
>>>>>>><br>
>>>>>>> You can also find more details at [0] and [1].<br>
>>>>>>><br>
>>>>>>> [0] <a href="http://help.github.com/fork-a-repo/" target="_blank">http://help.github.com/fork-a-repo/</a><br>
>>>>>>> [1] <a href="http://help.github.com/remotes/" target="_blank">http://help.github.com/remotes/</a><br>
>>>>>>><br>
>>>>>>> All the best,<br>
>>>>>>> Alex<br>
>>>>>>><br>
>>>>>>> Hi Alex,<br>
>>>>>> Thank you very much.<br>
>>>>><br>
>>>>><br>
>>>>> Alex,<br>
>>>>> I did what you asked to do. But still my fork not up to date.<br>
>>>><br>
>>>> Thilina,<br>
>>>> how did you create your local repository in the first place?<br>
>>>><br>
>>>> using 'git clone'<br>
>><br>
>> Please show us the output of<br>
>><br>
>> git remote -v show<br>
>><br>
>> origin    git://<a href="http://github.com/thilinaa/phpmyadmin.git" target="_blank">github.com/thilinaa/phpmyadmin.git</a> (fetch)<br>
> origin    git://<a href="http://github.com/thilinaa/phpmyadmin.git" target="_blank">github.com/thilinaa/phpmyadmin.git</a> (push)<br>
> upstream    git://<a href="http://github.com/phpmyadmin/phpmyadmin.git" target="_blank">github.com/phpmyadmin/phpmyadmin.git</a> (fetch)<br>
> upstream    git://<a href="http://github.com/phpmyadmin/phpmyadmin.git" target="_blank">github.com/phpmyadmin/phpmyadmin.git</a> (push)<br>
<br>
</div></div>Ok, try this:<br>
<br>
git remote rm upstream<br>
git remote add upstream <a href="https://github.com/phpmyadmin/phpmyadmin.git" target="_blank">https://github.com/phpmyadmin/phpmyadmin.git</a><br>
git remote update upstream<br>
<br>
Then, to sync from upstream:<br>
<br>
git checkout origin/master<br>
git merge upstream/master<br>
<div class="HOEnZb"><div class="h5"><br>
<br></div></div></blockquote><div><div class="HOEnZb"><div class="h5"><br></div></div>HI Marc,<br>
I think the problem may be that the remote repo 'origin' ( git://<a href="http://github.com/thilinaa/phpmyadmin.git" target="_blank">github.com/thilinaa/phpmyadmin.git</a> ) is read-only and must be replaced with git@github.com:thilinaa/phpmyadmin.git to enable push access.<br>

<br>
git remote rm origin<br>
git remote add origin "git@github.com:thilinaa/phpmyadmin.git"<br>git fetch upstream<br>git merge upstream/master<br>git push origin<br>
<br>
Thilina, please check that you have added your SSH public key to github allowed keys list in your account.<br> <br></div><blockquote class="gmail_quote" style="margin:0pt 0pt 0pt 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div class="HOEnZb"><div class="h5">
--<br>
Marc Delisle<br>
<a href="http://infomarc.info" target="_blank">http://infomarc.info</a><br>
<br>
------------------------------------------------------------------------------<br>
Live Security Virtual Conference<br>
Exclusive live event will cover all the ways today's security and<br>
threat landscape has changed and how IT managers can respond. Discussions<br>
will include endpoint security, mobile security and the latest in malware<br>
threats. <a href="http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/" target="_blank">http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/</a><br>
_______________________________________________<br>
Phpmyadmin-devel mailing list<br>
<a href="mailto:Phpmyadmin-devel@lists.sourceforge.net">Phpmyadmin-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Atul Pratap Singh<div>Senior Undergraduate Student</div><div>Institute Of Technology,<br>Banaras Hindu University, Varanasi,<br>India.</div><br>