1

I created a folder called test.git on VDS server and make it git repo by running the command git init --bare. I pushed a project from my computer to the test.git repo on the server. And everything is done successfully. But When I see the test.git repo on the server there is nothing. And then I created a empty folder in my computer and cloned the test.git repo on the server and the project get back.

In short there is the project in the test.git repo on the server but the project is invisible. Why?

G'ofur N
  • 1,546
  • 1
  • 9
  • 20

1 Answers1

1

But When I see the test.git repo on the server there is nothing.

Your Virtual Dedicated Server (VDS) should allow you to see the content of test.git, which should be the one typically see in a .git folder: no working tree, only files for storing the history of your repo, since test.git is a bare repo.

As I mentioned here, making a non-bare repo on your VSD server could work, but is not the best practice.

VonC
  • 1,042,979
  • 435
  • 3,649
  • 4,283