Skip to content

Instantly share code, notes, and snippets.

View GabrielCzar's full-sized avatar
🥋

Gabriel César GabrielCzar

🥋
View GitHub Profile
@GabrielCzar
GabrielCzar / git-update-fork.sh
Last active December 16, 2022 15:48 — 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_original/projeto.git
# Obtenha todos os branches deste novo remote,
# como o upstream/master por exemplo:
git fetch upstream