Como actualizar um "fork" de um repositório de github
por Pedro Resende em 17/01/2014 às 13:55:00
Vamos começar por fazer um clone de um repositório que tenha sido feito um "fork".
$ git clone [email protected]:nome/repositorio-forked.git
Entrem dentro do directório
$ cd repositorio-forked
Vamos então adiconar o repositório origina, aquela em que fizemos o "fork" como sendo remoto
$ git remote add --track master original-location [email protected]:nome/repositorio-original.git
Uma vez adicionado, vamos buscar as últimas alterações do repositório original
$ git fetch original-location
Vamos então fazer o "merge" do original com o nosso local
$ git merge original-location/master
Por fim, fazemos um push do actualizado para o github
$ git push
Done !

Pedro Resende
With over two decades of experience as a Full Stack Developer, I have journeyed through diverse facets of software development. Commencing with the creation of compact institutional websites, I progressed to crafting portals for insurance brokers and contributed to substantial projects for renowned companies such as MS Amlin. My expertise expanded further by delving into product development for Advertiser Kwanko and collaborating with startups in their pivotal ramp-up stages. Notably, I've been involved in architecting extensive e-commerce solutions for global enterprises like Wayfair.
I currently serve as the Tech Lead at Emergn, contributing to the establishment and advancement of the Strategyzer client.