Skip to content

Instantly share code, notes, and snippets.

@andreleoni
Last active January 30, 2018 12:16
Show Gist options
  • Select an option

  • Save andreleoni/1ba11a07f4455f5bf710e944b6314bc9 to your computer and use it in GitHub Desktop.

Select an option

Save andreleoni/1ba11a07f4455f5bf710e944b6314bc9 to your computer and use it in GitHub Desktop.
Resetar branch pra master com merge
# Vai até a respectiva branch
git checkout dest-branch
# Puxa todas as alterações do git
git fetch --all
# Reseta a branch para a master
git reset --hard origin/master
# Faz merge com sua branch
git merge origin/teu-branch
# Faz push forçando as alteraçes
git push -f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment