gitgit-baregit-init

What does Git remote look like?


I'm creating a tutorial for my coworkers on 'how to Git', and I added a simple tutorial for add, commit, and push, and now I want them to verify what they did worked.

I thought I would say "Go to the remote folder, and verify the new files are there", but my remote looks like the inside of /.git/.

Did I setup my remote incorrectly?

I create it as follow: git init --bare .\tutorialName\Remote

I had hoped to have a structure equal to the local repository, but that does not appear to be the case.


Solution

  • my remote looks like the inside of /.git/.

    That's exactly what a bare repo is.

    What you normally think of as a local "git repo" is really two things:

    1. A local copy of the repository (objects, refs, etc.) - this is kept in .git
    2. A working copy - a set of files equivalent to a snapshot of the tree at some point in history

    A bare repo does not have #2.