  In the framework of the first-order differential structure introduced by
Gigli, we obtain a Gauss-Green formula on regular bounded open sets of metric
measure spaces, valid for BV functions and vector fields with integrable
divergence. Then, we study least gradient functions in metric measure spaces
using this formula as the main tool.
