DEV Community

Cover image for Get some basic git stats on your lines added/removed ratio
Mark Lambe
Mark Lambe

Posted on

Get some basic git stats on your lines added/removed ratio

These aren't the most insightful stats but sometimes I find it interesting to see what my ratio of lines added to deleted is, and you can do it with just one command.

Simply run the command from this snippet and you'll get your 'Lines added', 'Lines deleted', and 'Add./Del. ratio'.

Don't forget to replace my name with yours, if you're not sure what it is you can just run git config -l | grep user.name

Top comments (0)