Hands-on task
Set up a git alias
In /root/repo the last commit has the subject release v3.
Set up a git alias named last in this repository that outputs only the subject of the last commit. That is, the command git -C /root/repo last should print exactly the line release v3 (without the hash, date and the rest), and after a new commit — that commit's subject. It's enough to set up the alias locally for this repository.
- git config
- aliases
- alias section
- git log
- output format