Protect git directory