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