Le 2012-05-02 09:30, Alex Marin a écrit :
On Wed, May 2, 2012 at 4:09 PM, Thilina Buddika Abeyrathna thilinaabeyrathna@gmail.com wrote:
Hi Marc, I used following command to update my git repo in GitHub.
git remote add upstream git://github.com/thilinaa/phpmyadmin.git
git fetch upstream
But it did not work for my repo. Please give me some suggestions.
Hi Thilina,
Your command adds your fork of phpmyadmin as a remote repo. I assume you want to get the latest changes from the phpmyadmin official repo. So you first have to add the remote phpmyadmin repo: git remote add upstream git://github.com/phpmyadmin/phpmyadmin.git For getting the latest updates from there, you should use: git pull upstream [branch] (or git fetch as you mentioned).
And finally, if you want to push the changes to your fork, then you first have to create your fork and add it as a remote repo: git remote add origin git://github.com/thilinaa/phpmyadmin.git
Alex, I think that this will work only if the local git repo was created empty. If he used "git clone", "origin" points to the first repo.
Then, you push with git push origin [branch]
You can also find more details at [0] and [1].
[0] http://help.github.com/fork-a-repo/ [1] http://help.github.com/remotes/
All the best, Alex
Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Phpmyadmin-devel mailing list Phpmyadmin-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/phpmyadmin-devel