Git menawarake akeh cara kanggo mbatalke owah-owahan gumantung ing situasi — ngilangake owah-owahan sing durung di-commit, mbatalke staging, ngowahi commit paling anyar, mbatalke commit, utawa reset. Ngerti tool sing pas kanggo saben situasi iku penting, skill praktis sing berharga.
Mbatalke owah-owahan sing durung di-commit (working directory)
git restore <file> # discard unstaged changes to a file (revert to last commit)
git checkout -- <file> # older equivalent
git restore .
git clean -fd
