First, take a copy of the full project directory, including the .git directory. 
It's worth taking a second copy of the .git directory so you can do 
investigations on it.

Using pro-git or one of the other on-line guides, check the structure of the 
.git directory. Do you have a HEAD file, do you have a refs/ directory, do you 
have objects/ ?

If you have the objects you have a great chance of recovering much of your 
files and history.

Philip
  ----- Original Message ----- 
  From: Tom Avey 
  To: git-users@googlegroups.com 
  Sent: Monday, March 25, 2013 12:14 AM
  Subject: [git-users] Did I loose my repository?


  I'm not sure what I did not my git prompt now says ((...)) instead of master. 

  It's been working great for a couple of months (I'm still pretty new to git)

  git status and branch and add yields "fatal: Not a git repository (or any of 
the parent directories): .git."

  git init says it is reinitializing existing Git repository but it doesn't 
appear to be fixed.

  My repository is only local as I program alone. 

  .git folder still exists.

  Can anyone help?  There's at least one branch I would like to recover.


  -- 
  You received this message because you are subscribed to the Google Groups 
"Git for human beings" group.
  To unsubscribe from this group and stop receiving emails from it, send an 
email to git-users+unsubscr...@googlegroups.com.
  For more options, visit https://groups.google.com/groups/opt_out.
   
   

  No virus found in this message.
  Checked by AVG - www.avg.com
  Version: 2013.0.2904 / Virus Database: 2641/6199 - Release Date: 03/23/13

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to