How to use the command git contrib (with examples)
Git contrib is a command that is part of git-extras
. It allows users to display commits from a specific author. This can be useful when you want to see all the commits made by a particular author in a given repository. By using the git contrib author
command, you can obtain a list of commit hashes and their corresponding commit messages for a specific author.
Use case 1: Display all commit hashes and messages from a specific author
Code:
git contrib author
Motivation:
If you want to track the progress of a specific author on a project or need to identify the contributions made by that author, the git contrib
command can be very useful. By inputting the name of the author, you can easily obtain a list of their commit hashes and corresponding commit messages.
Explanation:
git contrib
: The base command used to access the git-contrib feature.author
: The argument entered after the base command to specify the specific author whose commits you want to display.
Example output:
3066e4d2d21e0d15e4c79249ceaa16ae623962d8 Update README.md
b98292895d2f12d31a62eb33e250a25351ecf9bc Add new feature
1dfb8f2f045598b4c7aabb2ee6f0a3fe8ce8e390 Fix bug in user authentication
Conclusion:
The git contrib
command is a handy feature provided by git-extras
that allows you to easily display commits from a specific author. By knowing the email address or name of the desired author, you can quickly retrieve their commit hashes and corresponding commit messages. This command is beneficial for tracking an individual’s progress on a project or gaining insights into their contributions.