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命令检查分支提交次数

被折叠的 条评论
为什么被折叠?



