Last active
January 30, 2018 12:16
-
-
Save andreleoni/1ba11a07f4455f5bf710e944b6314bc9 to your computer and use it in GitHub Desktop.
Resetar branch pra master com merge
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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