Git Tutorial: How To See Your Most Used Git Commands Using a Scriptby@micogongob
292 reads

Git Tutorial: How To See Your Most Used Git Commands Using a Script

by Mico Gongob3mFebruary 14th, 2021
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

Git Tutorial: How To See Your Most Used Git Commands using a Script. Using a script below to fetch my most git commands sorted by the number of their occurrences. I’ve limited the list to just 10 commands but some of these can be extended with command options and arguments which make their uses different and making them somewhat versatile. You can copy the script here::.history | awk '{print $2 $3}' | grep '^git' | sort | uniq -c | sort -nr | head -10 | git status. Git status Displays the state of the repo. Git Log shows a list of the recent commits and shows a shorter version of the updated version.

Company Mentioned

Mention Thumbnail
featured image - Git Tutorial: How To See Your Most Used Git Commands Using a Script
Mico Gongob HackerNoon profile picture
Mico Gongob

Mico Gongob

@micogongob

Software Engineer from the Philippines

About @micogongob
LEARN MORE ABOUT @MICOGONGOB'S
EXPERTISE AND PLACE ON THE INTERNET.

Share Your Thoughts

About Author

Mico Gongob HackerNoon profile picture
Mico Gongob@micogongob
Software Engineer from the Philippines

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite
Also published here
L O A D I N G
. . . comments & more!