Answer
To do this, I will go to the command line and enter:
git config --global alias.nx "log --name-only --oneline"
The double quotes are needed because you are using two flags on log
.
The result of calling this command is shown in Figure 8.2:
Figure 8.2: Our new alias at work
Notice that each commit is there, represented on a single line and with only the SHA and message (except when there is a tag or pointers, as shown on line 1 and line 7 in Figure 8.2).