title: Best way to restore .git folder
body: <p>Due to some error in code, we lost a complete GIT-controlled directory. Restoring the files was not a problem; TimeMachine took care of that. However, TimeMachine apparently did not back up the .git folder.</p>
  
  <p>Is there a better way to restore/recreate the .git folder than to fetch the directory from the master server or another machine?</p>
  
  <p>Thanks in advance for any useful hint.</p>