I am very new to Git, but spent far too much time trying to achieve this. We had a contractor to do it for us a year ago for us, so unless i am missing something, this is doable.
We have a git repository (only the project.git and .git directories) this project is a custom website. So we need to extract all the files from the repository to be able to deploy the site.
I can see a lot of objects, but obviously nothing which i was expecting (.aspx files etc...)
So what is the process to get the files out of the repository?
Let me know if I haven't been clear
git clone /path/to/project.git
.git
directory isn't what I would expect either. This is not how you work with git. Someone deleted all the project's files and sent you just the repository control folder. You can try to restore the deleted files by running the commandgit reset --hard
one level above the.git
folder, it should re-create what was deleted based on the commited data.