Created
June 22, 2022 18:43
-
-
Save renatarko/74d1c7e6a56c516dd86c184a1bea7f59 to your computer and use it in GitHub Desktop.
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
| $ git init = inicializa o repositório e enxerga todas as mudanças que foram feitas no projeto | |
| & git status = reporta como está o repositório | |
| histórico: | |
| $ git log = histórico de alterações | |
| $ git log --decorate = | |
| $ git log --author-"name" = lista os commits do autor "name" | |
| $ git shortlog = mostra os autores dos commits, quantidade e quais fizeram. Em ordem alfanética | |
| $ git log --graph = mostra de forma gráfica os branches e versões | |
| $ git show <hash> = mostra infos do commit específico | |
| $ git diff = monstra diferenças entre o diretório e na área de teste | |
| resetar: | |
| $ git reset --soft <hash> = cancela o commit feito e volta para o stage | |
| $ git reset --mixed <hash> = cancela o commit e volta pata o modified | |
| $ git reset --hard <hash> = | |
| $ git checkout "file name" = retorna o arquivo para antes da edição | |
| $ git reset HEAD "file name" = retira o arquivo da fila do stage. | |
| $ HEAD = volta para o ponteiro onde estou no momento. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment