Re: Lost a week?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Michael J Gruber
Date: Thursday, April 15, 2010 - 7:11 am

Daniel Grace venit, vidit, dixit 15.04.2010 15:57:

Backup now.

Most probably, you've made those commits on a detached HEAD. May you
have checked out a remote branch, or a specific commit, before you went
about your business on or after 6th?

git reflog (or git log -g) will be able to show you the history of your
HEAD before you lost it ;)

Then you can tag those commits or 'checkout -b safehaven
nameofthetopcommit' to get a branch with those commits. Now they are
safe from being pruned during garbage collection.

Michael
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Lost a week?, Daniel Grace, (Thu Apr 15, 6:57 am)
Re: Lost a week?, Michael J Gruber, (Thu Apr 15, 7:11 am)
Re: Lost a week?, Thomas Rast, (Thu Apr 15, 7:16 am)
Re: Lost a week?, Matthieu Moy, (Thu Apr 15, 7:16 am)
Re: Lost a week?, Daniel Grace, (Thu Apr 15, 7:29 am)