Skip to content

Instantly share code, notes, and snippets.

View gmahota's full-sized avatar
💭
I may be slow to respond.

Guimaraes Mahota Jr. gmahota

💭
I may be slow to respond.
View GitHub Profile
@gmahota
gmahota / git-update-fork.sh
Created September 27, 2017 09:08 — 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