How do I get the files back from the .git directory alone? -


is possible source code git .pack files? have full .git folder source entirely missing. possible use these pack files , source code out of master branch? have access .pack files. no repository url!

the .git directory full repository, missing work tree inside it's typically located. sits there unaware there's no more enclosing work tree.

but things simple:

$ mkdir project $ mv /path/to/that/.git project ... ".git" right under "project" ... $ cd project $ git branch ... see list of branches here ... $ git checkout -f master 

the -f command-line option git checkout crucial if head reference points branch want check out—otherwise git won't try create files in work tree thinking have them checked out consciously deleted.


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -