add `.git` to ignores for watcher & compile

all test pass, and manually checked.

closes #540