The .git directory and security

Theoretically, if someone came into possession of one on my .git directories (but no source code at all), would they be able to recover any code?

  • Can't rebase and manage conflicts of Excel Sheet in the repo
  • How to tag an older commit in Git?
  • Is there a “more” command that can be used in the Git shell in windows?
  • How to configure Git post commit hook
  • Why do I need to do a 'git add <files>' after resolving merge conflicts?
  • Is it possible to use a git merge strategy that combines both “subtree” and “ours” functionality?
  • Auto sync two git repositories
  • How to get list of branch heads in Git?
  • git: ignoring a file which *is* version controlled
  • Visual Studio 2013 and Git 2.4
  • Post commit step in xCode
  • git archive preserve time
  • One Solution collect form web for “The .git directory and security”

    Yes, in .git/objects folder is git database with all objects (blobs, commits, tags and trees). Whole history is available in .git folder.

    For details you can take a look into documentation.

    Git Baby is a git and github fan, let's start git clone.