Concept of adding and removing code lines GIT

what is the concept of adding and removing code lines in GIT

How we get no of code lines added,modified and deleted statics ? there is any tool which will give
such statics report