在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:arzzen/git-quick-stats开源软件地址:https://github.com/arzzen/git-quick-stats开源编程语言:Shell 90.0%开源软件介绍:GIT quick statistics
Table of Contents
ScreenshotsUsageInteractive
git-quick-stats Or git quick-stats Non-interactiveFor those who prefer to utilize command-line options, git-quick-stats <optional-command-to-execute-directly> Or git quick-stats <optional-command-to-execute-directly> Command-line argumentsPossible arguments in short and long form: GENERATE OPTIONS
-T, --detailed-git-stats
give a detailed list of git stats
-R, --git-stats-by-branch
see detailed list of git stats by branch
-c, --changelogs
see changelogs
-L, --changelogs-by-author
see changelogs by author
-S, --my-daily-stats
see your current daily stats
-V, --csv-output-by-branch
output daily stats by branch in CSV format
-j, --json-output
save git log as a JSON formatted file to a specified area
LIST OPTIONS
-b, --branch-tree
show an ASCII graph of the git repo branch history
-D, --branches-by-date
show branches by date
-C, --contributors
see a list of everyone who contributed to the repo
-a, --commits-per-author
displays a list of commits per author
-d, --commits-per-day
displays a list of commits per day
-Y, --commits-by-year
displays a list of commits per year
-m, --commits-by-month
displays a list of commits per month
-w, --commits-by-weekday
displays a list of commits per weekday
-o, --commits-by-hour
displays a list of commits per hour
-A, --commits-by-author-by-hour
displays a list of commits per hour by author
-z, --commits-by-timezone
displays a list of commits per timezone
-Z, --commits-by-author-by-timezone
displays a list of commits per timezone by author
SUGGEST OPTIONS
-r, --suggest-reviewers
show the best people to contact to review code
-h, -?, --help
display this help text in the terminal Git log since and untilYou can set the variables export _GIT_SINCE="2017-01-20"
export _GIT_UNTIL="2017-01-22" Once set, run Git log limitYou can set variable export _GIT_LIMIT=20 Git log optionsYou can set export _GIT_LOG_OPTIONS="--ignore-all-space --ignore-blank-lines" Git pathspecYou can exclude a directory from the stats by using pathspec export _GIT_PATHSPEC=':!directory' You can also exclude files from the stats. Note that it works with any alphanumeric, glob, or regex that git respects. export _GIT_PATHSPEC=':!package-lock.json' Git merge view strategyYou can set the variable export _GIT_MERGE_VIEW="enable"
export _GIT_MERGE_VIEW="exclusive" Git branchYou can set the variable export _GIT_BRANCH="master" Color themesYou can change to the legacy color scheme by toggling the variable export _MENU_THEME="legacy" InstallationDebian and UbuntuIf you are on at least Debian Bullseye or Ubuntu Focal you can use apt for installation: apt install git-quick-stats UNIX and Linuxgit clone https://github.com/arzzen/git-quick-stats.git && cd git-quick-stats
sudo make install For uninstalling, open up the cloned directory and run sudo make uninstall For update/reinstall sudo make reinstall macOS (homebrew)brew install git-quick-stats Or you can follow the UNIX and Linux instructions if you wish. WindowsIf you are installing with Cygwin, use these scripts: If you are wishing to use this with WSL, follow the UNIX and Linux instructions. DockerYou can use the Docker image provided:
System requirements
awk
basename
cat
column
echo
git
grep
head
printf
seq
sort
tput
tr
uniq Dependencies
FAQQ: I get some errors after run git-quick-stats in cygwin like A: You can run the dos2unix app in cygwin as follows: Q: How they could be used in a project with many git projects and statistics would show a summary of all git projects? A: If you want to include submodule logs, you can try using the following: ContributionWant to contribute? Great! First, read this page. Code reviewsAll submissions, including submissions by project members, require review. Some tips for good pull requests
FormattingThis documentation is written using standard markdown syntax. Please submit your changes using the same syntax. Testsmake test LicensingMIT see LICENSE for the full license text. ContributorsThis project exists thanks to all the people who contribute. BackersThank you to all our backers! |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论