March 2018
Intermediate to advanced
276 pages
7h 11m
English
This section summarizes the most important Git commands. Please note that the trailing backslash, \, is used to break the lines so that they appear readable in the text, and you want to omit those backslashes and join the lines together when you enter the commands.
Here we ask Git to deliver a list of all modified files in every commit. We then remove empty lines—a side effect of the Git command—with the egrep command. The command then counts the frequency of the resulting file names and delivers the results sorted in descending order:
| | adam$ git log --format=format: --name-only | egrep -v '^$' | sort \ |
| | | uniq -c | sort |
Read now
Unlock full access