Skip to content

Instantly share code, notes, and snippets.

@JohnathanMarkSmith
Last active December 16, 2015 15:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JohnathanMarkSmith/5454947 to your computer and use it in GitHub Desktop.
Save JohnathanMarkSmith/5454947 to your computer and use it in GitHub Desktop.
How to see the last time a developer commited work and also the number of commits your developer made in your Git repository
How to see the last time a developer commited work and also the number of commits your developer made in your Git repository
How would you like to check-up on your developers and see that last time your developers commited work to your Git repository. I do this all the time to check on the developers on my projects.
The best way to see who is commiting work to your Git repository and the last time is easy. Just go into one of your Git repositories and type the following:
git shortlog -sne |awk '{print $1,$2,$3,system("git log -n1 --format=%cd --author=" $2)}'
and your output should look like:
Wed Apr 10 11:35:41 2013 -0400
3 Johnathan Smith 0
This will show you who is doing all the work and the last time work was commited…..
Now that’s it. have fun with Git.
If you have any questions or comments please email me at john@johnathanmarksmith.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment