What does the -1
in git log -1
do?
I looked through the git log documentation but could not find any supporting documentation about this argument with git 2.16.2.
This returns the most recent commit on a branch.
You won't find -1
in the documentation, but you will find "-<number>
":
-<number>
-n <number>
--max-count=<number>
Limit the number of commits to output.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With