According to Wikipedia the global Gauss-Bonnet theorem concludes,
$\int_{M}KdA + \int_{\partial M}k_{g}ds=2\pi\chi(M)$.
The lecture notes I am using however does not have the integral with the geodesic curvature but they seem to have the same hypotheses. Here is the proofs from the notes;
Either Wikipedia is wrong or the notes must be wrong at some point. In particular if a geodesic triangulation always is possible for any compact surface then there would never be a geodesic curvature integral imo.
The notes can be found at http://www.matematik.lu.se/matematiklu/personal/sigma/Gauss.pdf
