git checkout, reset and revert




git revert - undo a commit by creating a new commit.

git reset - change the HEAD index without modifying the file if you choose - soft reset. If it is hard reset it is the same.

git checkout - basically goes to a commit and change the file content too.



Comments

Popular posts from this blog

gemini cli getting file not defined error

NodeJS: Error: spawn EINVAL in window for node version 20.20 and 18.20

vllm : Failed to infer device type