check your commit count in your branch using Git commands

You can check your commit count in your branch using Git commands. Here are a few ways to do it:

1. Check the Number of Commits in Your Current Branch

git rev-list --count HEAD

This shows the total number of commits in the current branch.

2. Check the Number of Commits You Made (Author-Specific)

git shortlog -s -n --author="Your Name"

Replace "Your Name" with your Git username.

3. Check the Number of Commits Compared to the main or develop Branch

git rev-list --count main..HEAD

This shows the number of commits in your branch that are not in main. Replace main with your target branch.

4. List All Your Commits in the Current Branch

git log --author="Your Name" --oneline | wc -l

你可能感兴趣的:(git)