Reputation: 7443
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.
Upvotes: 12
Views: 2954
Reputation: 7443
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.
Upvotes: 19