Skip to content

Instantly share code, notes, and snippets.

View alvarocamillont's full-sized avatar

Alvaro Camillo Neto alvarocamillont

View GitHub Profile
@alvarocamillont
alvarocamillont / git-update-fork.sh
Created August 29, 2018 19:15 — forked from rdeavila/git-update-fork.sh
Git: como atualizar um fork com as mudanças do original?
#!/bin/bash
# Adicione um novo remote; pode chamá-lo de "upstream":
git remote add upstream https://github.com/usuario/projeto.git
# Obtenha todos os branches deste novo remote,
# como o upstream/master por exemplo:
git fetch upstream