Feedback

Chat Icon

Learn Git in a Day

Everything you need, nothing you don't

Tricks That Save You Time
85%

Time-Travel to an Old Commit

Sometimes you want to look at your project as it was at a specific point in history. You can do this with git checkout and a commit hash:

git checkout abc1234

Git'll show a message about being in a "detached HEAD" state. This sounds alarming but it's harmless - it just means you're looking at an old commit, not a branch. You can browse files, run the code, and inspect things freely.

To go back to where you were:

Learn Git in a Day

Everything you need, nothing you don't

Enroll now to unlock all content and receive all future updates for free.

Unlock now  $9.99$7.49

Hurry! This limited time offer ends in:

To redeem this offer, copy the coupon code below and apply it at checkout:

Learn More