Comandos a serem lembrados do Git » Histórico » Versão 3
Lucas Germano, 25/06/2019 21:36 h
| 1 | 1 | Lucas Germano | Para voltar atrás em alguns commits (apagando o histórico de commits até ele): |
|---|---|---|---|
| 2 | |||
| 3 | 3 | Lucas Germano | git reset --hard last_working_commit_id |
| 4 | 2 | Lucas Germano | |
| 5 | 1 | Lucas Germano | So we must not reset to the commit_id that we don't want. |
| 6 | |||
| 7 | Then sure, we must push to remote branch: |
||
| 8 | |||
| 9 | git push --force |