How can I show files in Git which change most often?
相关问题
- How to get the return code of a shell script in lu
- Invoking Mirth Connect CLI with Powershell script
- Why does recursive submodule update from github fa
- Extended message for commit via Visual Studio Code
- Emacs shell: save commit message
We can also find out files changed between two commits or branches, for e.g.
This is probably obvious, but, the queries provided will show all files, but, perhaps you're not interested in knowing that your configuration or project files are the most updated. A simple grep will isolate to your code files, for example:
I noticed that both Mark’s and sehe’s answers do not
--follow
the files, that is to say they stop once they reach a file rename. This script will be much slower, but will work for that purpose.git-most.sh
This is a windows version
then open in excel
create pivot table
For powershell, assuming you got git bash installed
You could do something like the following:
The log just outputs the names of the files that have been changed in each commit, while the rest of it just sorts and outputs the top 10 most frequently appearing filenames.