If you make a server clone of a repository and clone that locally, the server clone will be known as "origin" locally. The server clone will, however, not be updated automatically with changes to the original repository. That is your responsibility. The easiest way to do this is by adding a second remote for the original repository. Use "git remote add upstream <URL to original repository>" followed by "git fetch upstream". After that you can do "git checkout master" and "git merge --ff-only upstream/master" (the reason for --ff-only is to make sure that you have no local changes to master or you will not be keeping your server clone in sync with upstream; all your own changes should be done on separate topic branches anyway). Finally push it back to your own server clone with "git push origin master".
//Peter > -----Original Message----- > From: [email protected] [mailto:[email protected]] On > Behalf Of Jawsome > Sent: den 22 februari 2012 17:52 > To: Gitorious > Subject: [gitorious] Re: Update clone repository > > Where did you originally pull from? > Is this a local installation of Gitorious [Where the actual repo is > being hosted] ? > Can you push to it? > What did you originally run to clone it? > > > On Feb 16, 9:53 am, AnGe7 <[email protected]> wrote: > > hi all > > > > i have clone one repository. > > > > i have add this repository on my comptuer. > > > > But, when the master repository make any change, i don't have this > > updates. > > > > Please, someone can help me for update ma repository ? > > > > When i make git pull it's say : Already up-to-date. But i'm not up- > to- > > date with the master repository... > > > > Thank you. > > > > (sorry i'm french) > > -- > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] -- To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected]
