Home>>English>>My Git Command Tricks

My Git Command Tricks

Temporarily switch to a certain commit

Make sure git status is clean. Jump to a specific git commit:
git checkout commit_hash

git checkout 286202caa31b61c2182209f37f8069a0b60fb942

Back to the original commit:
git checkout branch_name

git checkout master

Leave a Reply

Your email address will not be published. Required fields are marked *