I've got a git repo in my home directory to keep track of some dotfiles.
An unpleasant side effect of that, no matter where I am now, it is considered a part of the ~ repo, and it's easy to mistakenly add files to it etc.
It is somehow possible, that the repo in ~/.git listens to commands (git add, etc) ONLY if these commands are invoked directly in ~, and otherwise it just pretends to not exist, i.e. not a repository is thrown? (For example, if I invoke git add -A in ~/Documents)