Git
Undo & recover
| Command | Use |
|---|---|
| git reset --soft HEAD~1 | Undo the last commit, keep changes |
| git reflog | Recover with reflog |
Inspection
| Command | Use |
|---|---|
| git log --oneline --graph --decorate --all | Inspect history as a graph |
| Command | Use |
|---|---|
| git reset --soft HEAD~1 | Undo the last commit, keep changes |
| git reflog | Recover with reflog |
| Command | Use |
|---|---|
| git log --oneline --graph --decorate --all | Inspect history as a graph |