Skip to content

Commit 43ca465

Browse files
committed
Merge pull request #39 from PatrickMcDonald/patch-1
Update link in gitready.com/advanced/2009/01/17/restoring-lost-commits.html
2 parents 5fa171e + af3610e commit 43ca465

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_posts/2009-01-17-restoring-lost-commits.textile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ category: advanced
66

77
So, you just did a @git reset --hard HEAD^@ and threw out your last commit. Well, it turns out you really did need those changes. You'll never be able to implement that algorithm that perfectly twice, so you need it back. Don't fear, git should still have your commit. When you do a reset, the commit you threw out goes to a "dangling" state. It's still in git's datastore, waiting for the next garbage collection to clean it up. So unless you've ran a @git gc@ since you tossed it, you should be in the clear to restore it.
88

9-
For these examples, I'm working with the "code for this blog":http://github.com/qrush/gitready. From the top, we just ran:
9+
For these examples, I'm working with the "code for this blog":http://github.com/gitready/gitready. From the top, we just ran:
1010

1111
<pre>
1212
$ git show-ref -h HEAD

0 commit comments

Comments
 (0)