As you can see below I have to set the work-tree of a bare repo:
cd barerepo
git status
fatal: This operation must be run in a work tree
git --work-tree=/var/www/mywork/ status
# On branch master
nothing to commit (working directory clean)
How do I set the work-tree for that repo so that I don't have to specify it everytime?
I tried modifying barerepo/config with this but it doesn't work.
[core]
repositoryformatversion = 0
filemode = true
bare = true
worktree = /var/www/mywork