Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8667047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T17:52:34+00:00 2026-06-12T17:52:34+00:00

I clone a Project from Github and i want to extract some features. Can

  • 0

I clone a Project from Github and i want to extract some features. Can someone give me an instructions to extract:

  • Number of users work on this project?
  • To extract the most change file? (has more commit)
  • Number of commit on this file?
  • Number of insertion/deletion on this file?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T17:52:35+00:00Added an answer on June 12, 2026 at 5:52 pm

    for users and their commit

    git shortlog -s -n
    

    to count the number of users

    git shortlog -s -n | wc -l
    

    for the number of commit to a certain file you can do

    git log "path_to_file" | wc -l 
    

    and add 1 to the output divide it by 6 since there are 6 lines for every commit. my shell skills arent that good to do that pipeline

    you can also do

    git log --pretty=oneline "path_to_file" | wc -l
    

    for insertion and deletions

    git log --stat
    

    gives information per commit, i guess you need to go over that and start counting

    also, github can display the same information pretty nicely via stats and file diff stat

    for file with most commits you need to go over each file and see the number of commits and take the largest

    this is the batch file i’ve wrote. It could be better, but it should get you started

       for /r "Folder_Path" %%X in (*.*) do (
            (echo %%X  >> commits.txt
             git log --pretty=oneline %%X | wc -l >> commits.txt) 
            )
    

    it will make a file with the filename and number of commits next to it. just take the largest

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to clone a git project (from github, say), and have the
I cloned a project from github with git clone --mirror . That left me
I have recently clone QuickDialog project from github and played around with it. They
When I try to clone a project from the GitHub, it gives me the
I've cloned some project from github, to my project, all works good, I'm happy.
I cloned someone else's repo to my computer from github to try it out.
I have a project hosted on GitHub and I would like to work locally
I have created free-style software project in Hudson. I want to clone a public
I want to clone a new project with a command like git clone git@some_link.com:some_word/project_name.git
I started some project on github.com. And I'm working on two machines. I did

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.