Skip to content

Commit

Permalink
new: walk-through-past-commits.md
Browse files Browse the repository at this point in the history
  • Loading branch information
byt3h3ad committed Mar 1, 2024
1 parent 3c78e9a commit 2f18a55
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions git/walk-through-past-commits.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# New Ways to Walk Through Past Commits in git

`HEAD~` is equivalent to `HEAD~1`, `HEAD~~` (2 `~`) is equivalent to `HEAD~2`, and so on.

This is great - you wouldn't believe the number of times I mistype `git show HEAD~1`.

0 comments on commit 2f18a55

Please sign in to comment.