I followed this post to setup a remote git repo.
Instead of starting from scratch,
- I did some development in my pc1 (the repo was created with git init)
-
Now, I wanted to move the repo to a server (same subnet)
ssh git@example.com
mkdir my_project.git
cd my_project.git
git init --bare -
Then, locally
cd my_project
git remote add origin git@example.com:my_project.git
git push -u origin master
Now, in remote (server) repo, I see these folders
branches config description HEAD hooks info objects refs
I was expecting/want to see the same content as my local (pc1) git repo
bin doc src
You initialized a bare repository on the remote side. What this means is that it stores the history, but doesn’t have a working directory (translation — no actual checkout of the project). The structure you’re seeing is normal.