git bare VS non-bare

bare 裸

A "bare" repository which cloned using the --bare option, just contains the version control information and no working files (no tree) and it doesn't contain the special .git sub-directory. Instead, it contains all the contents of the .git sub-directory directly in the main directory itself.

A "non-bare" repository in Git has a bunch of working files (the tree), and a hidden directory containing the version control information.

这篇文章: 有用 无用