Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I would recommend Barrett O'Neill's Semi-Riemannian Geometry. It's very good. The latter chapters concern general relativity, but the earlier chapters are purely mathematical and contain lots of nice differential geometry.