Is there a command that shows how many commit was done on the branch ?

Asked

Viewed 249 times

0

I’ve always had curiosities about these things, there’s some command in git that shows how many files the branch owner has moved up to the repository ?

  • Your question is a little confusing for me. Try giving an example of things that happened in the repository and what answer you would want to make it easier to know what the command would be

  • And a silly curiosity, example in team projects where there are 4 developers and each one has its branch in the repository, i wonder if in my branch how many files I’ve uploaded to the repository because in real projects you always take the changes that another colleague has uploaded to the repository, so this question is just to know even if there is a command in git that I can see the amount of commit

  • Answers must be present in the answer area, not in the question.

1 answer

0


There is, I believe the command you want is as follows::

git rev-list --count <branch-name>
  • rev-list list confirmation objects in reverse chronological order

  • --count carries out the counting of these objects

More information : here

Source: Git documentation

  • I tested the command using my branch only it ended up counting the total value of master

  • I used this command and funfou git shortlog -s -n

Browser other questions tagged

You are not signed in. Login or sign up in order to post.