Background:
I've created a bare repo
cd ~ git init --bare GitDrive
The idea was to use this as the git dir for google drive
cd "Google Drive" echo "gitdir: ../GitDrive
But git didn't like this until I removed
bare = true
from.git/config
This got me thinking about the purpose of having a configuration setting whether a repo is bare or not.
Reading git-config it appears to be used to avoid having to guess whether a repo is bare or not.
I know you can't checkout in a bare repo but you can't checkout in a repo/.git/ either regardless of the config.bare setting.
In what situations can't git determine whether a repo is bare or not?
What is the technical term for the directory containing the files config/info/hooks/index...?
Being repo/
for a bare repo and repo/.git/
otherwise.
What is the technical difference between a repo created using git init --bare
and pulling the .git directory out of a live repo?