Found the .* rule in .gitignore which was preventing .project from getting picked up.