How to extract the source files from a git repository?

git

Solution

Your contractor left you a bare repository. It is used by Git for remotes that don't have a working copy (for example, on a server).

Just clone from the bare repository:

git clone project.git

You should end up with a directory called `project` that has a checkout of the `master` branch and a `.git` directory with a clone of the repo. This `project` directory is a full copy of the repo, but it's the kind you can do useful things with.

Problem

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

Original source

Related problems