Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Accessing files of a repository from the Git server

Tags:

git

repository

I have to access some files stored in a Git repository, but I don't see where they are stored inside the repository folder.

Is there a special way to access the various files pushed from the clients?

like image 264
jpmonette Avatar asked Jan 05 '14 21:01

jpmonette


People also ask

How do I access files from a git repository?

To access files stored in such a repository I recommend cloning the repository. If you want to do this from the server you can do something like git clone file /path/to/bare/repository /path/to/clone .

How do you bring a repository that on the git server on your machine?

Fork the repository to your GitHub account. Choose a local folder for the cloned files. Clone the repository to your local machine. Configure the upstream remote value.

How do I go to a directory in git?

Browse to the desired Directory through Commands in Git Bash Open your Git Bash. Type the following command cd <path of the directory> and press enter.

How do I access my GitHub repository from command line?

Open a command prompt. To launch GitHub Desktop to the last opened repository, type github . To launch GitHub Desktop for a particular repository, type github followed by the path to the repository. You can also change to your repository path and then type github . to open that repository.


1 Answers

If this is a bare repo, you wouldn't find those file in the repo.git folder.
See "all about "bare" repos": a bare repo has no working tree, and is used for pushing to it (since there is no working tree to keep in sync with an updated branch)

The easiest way to see those file is to clone said bare repo:

git clone /path/to/repo.git /path/to/repo
like image 141
VonC Avatar answered Oct 20 '22 08:10

VonC