Comandos a serem lembrados do Git » Histórico » Versão 1
João Victor Pariz, 17/05/2025 18:01 h
1 | 1 | João Victor Pariz | h1. 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 | |||
7 | So we must not reset to the commit_id that we don't want. |
||
8 | |||
9 | Then sure, we must push to remote branch: |
||
10 | |||
11 | git push --force |