From 498e95e2fcfc2b3042673723fb1e103d3da4ce7e Mon Sep 17 00:00:00 2001 From: "mike.dacre@06f2e98956fc551180a694c61abd45921cd7369b" Date: Tue, 30 Jun 2015 00:49:51 +0000 Subject: [PATCH] --- doc/forum/Restoring_files__63__.mdwn | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 doc/forum/Restoring_files__63__.mdwn diff --git a/doc/forum/Restoring_files__63__.mdwn b/doc/forum/Restoring_files__63__.mdwn new file mode 100644 index 0000000000..d0bf86d90b --- /dev/null +++ b/doc/forum/Restoring_files__63__.mdwn @@ -0,0 +1,11 @@ +One of my users created a git annex repository a while ago and has since left the lab, and I think they messed it up badly. + +It looks like all of the data is present in the annex directory, but there are no files in main directory, other than the .git folder. The master branch seems to be gone, and the only branch left is called git-annex. + +git log gives the error "fatal: bad default revision 'HEAD'" when I first do git log, because the branch that I am on doesn't exist (the master branch). Changing to the git-annex branch works, but then I can't go back to the master branch because it doesn't exist. + +git annex unannex doesn't seem to do anything. Is there any way to get the data back following this kind of mess up? + +Thanks for your help + +-Mike