I cloned a git repository. I would like to ensure that whatever my
git checkout whatever
As you've seen, the
core.sharedRepository setting (or
core.sharedrepository, case is ignored for these) affects only the repository itself. It's meant for setups where several users push to a shared repository using their own identities (e.g., by direct access or via ssh-ing as themselves to the server).