Doesn't git automatically exclude all files starting with a dot?

No