Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. ### git command 1
  2. ***this git command shows the times of git commits happen on each day of a week***
  3.  
  4. `git log --format=format:%ad --date=local | awk '{print $1}' | sort | uniq -c`
  5.  
  6. **result sample**
  7.  
  8. 97 Fri
  9. 104 Mon
  10. 2 Sat
  11. 2 Sun
  12. 90 Thu
  13. 90 Tue
  14. 82 Wed
  15.  
  16.  
  17. ### git command 2
  18. ***this git command shows the times of git commits happen on each hour of a day***
  19.  
  20. `git log --format=format:%ad --date=format-local:%H | sort | uniq -c`
  21.  
  22. **result sample**
  23.  
  24. 1 00
  25. 2 01
  26. 2 02
  27. 1 03
  28. 1 04
  29. 4 06
  30. 2 07
  31. 1 08
  32. 1 09
  33. 33 10
  34. 47 11
  35. 18 12
  36. 28 13
  37. 40 14
  38. 76 15
  39. 64 16
  40. 75 17
  41. 43 18
  42. 14 19
  43. 2 20
  44. 2 21
  45. 6 22
  46. 4 23
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement