Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Dev Setup | 5,802 | a year ago | 34 | other | Python | |||||
macOS development environment setup: Easy-to-understand instructions with automated setup scripts for developer tools like Vim, Sublime Text, Bash, iTerm, Python data analysis, Spark, Hadoop MapReduce, AWS, Heroku, JavaScript web development, Android development, common data stores, and dev-based OS X defaults. | ||||||||||
Git Hours | 683 | 2 | 7 months ago | 11 | August 15, 2021 | 8 | mit | JavaScript | ||
Estimate time spent on a git repository | ||||||||||
Dotaliases | 231 | 3 months ago | 8 | Shell | ||||||
Helpful bash aliases for true professionals. | ||||||||||
Pagure | 195 | 13 days ago | 1 | gpl-2.0 | Python | |||||
pagure is a light-weight git-centered forge based on pygit2. (MIRROR) | ||||||||||
Pool | 166 | 8 years ago | 26 | other | Ruby | |||||
The simplest proxy service to access your Dockerized webapps by Git commit-id. | ||||||||||
Mydailylearn | 134 | 13 days ago | 1 | JavaScript | ||||||
🚀 Important commands, Code Snippets, Basics on different topics learning daily 📚🎉! | ||||||||||
Devops Tools Documentation | 113 | a day ago | 11 | SCSS | ||||||
This Repository contains DevOps Projects and Tools Documentation step by step practice | ||||||||||
Refinery | 99 | 7 years ago | 3 | mit | Python | |||||
Refinery - A locally deployable open-source web platform for analysis of large document collections | ||||||||||
Wordpress | 98 | 4 days ago | 16 | July 24, 2016 | 33 | gpl-3.0 | PHP | |||
The WordPress project layout used by many of Seravo's customers, suitable also for local development with Vagrant and git deployment | ||||||||||
Batter | 90 | 10 years ago | 22 | other | Python | |||||
It makes Waffles. |
Estimate time spent on a git repository.
For example time spent on Twitter's Bootstrap
➜ bootstrap git:(master) git-hours
{
...
"total": {
"hours": 9959,
"commits": 11470
}
}
From a person working 8 hours per day, it would take more than 3 years to build Bootstrap.
Please note that the information might not be accurate enough to be used in billing.
$ npm install -g git-hours
NOTE: If for some reason git-hours
won't work, try to npm install -g nodegit
.
git-hours
depends on nodegit.
It might be a bit tricky to install. If installing git-hours fails for some
reason, probably it was because nodegit couldn't be installed.
Check their documentation for troubleshooting.
The algorithm for estimating hours is quite simple. For each author in the commit history, do the following:
Go through all commits and compare the difference between them in time.
If the difference is smaller or equal then a given threshold, group the commits to a same coding session.
If the difference is bigger than a given threshold, the coding session is finished.
To compensate the first commit whose work is unknown, we add extra hours to the coding session.
Continue until we have determined all coding sessions and sum the hours made by individual authors.
The algorithm in ~30 lines of code.
In root of a git repository run:
$ git-hours
Note: repository is not detected if you are not in the root of repository!
Help
Usage: git-hours [options]
Options:
-h, --help output usage information
-V, --version output the version number
-d, --max-commit-diff [max-commit-diff] maximum difference in minutes between commits counted to one session. Default: 120
-a, --first-commit-add [first-commit-add] how many minutes first commit of session should add to total. Default: 120
-s, --since [since-certain-date] Analyze data since certain date. [always|yesterday|tonight|lastweek|yyyy-mm-dd] Default: always'
-e, --email [emailOther=emailMain] Group person by email address. Default: none
-u, --until [until-certain-date] Analyze data until certain date. [always|yesterday|today|lastweek|thisweek|yyyy-mm-dd] Default: always
-m, --merge-request [false|true] Include merge requests into calculation. Default: true
-p, --path [git-repo] Git repository to analyze. Default: .
-b, --branch [branch-name] Analyze only data on the specified branch. Default: all branches
Examples:
- Estimate hours of project
$ git-hours
- Estimate hours in repository where developers commit more seldom: they might have 4h(240min) pause between commits
$ git-hours --max-commit-diff 240
- Estimate hours in repository where developer works 5 hours before first commit in day
$ git-hours --first-commit-add 300
- Estimate hours work in repository since yesterday
$ git-hours --since yesterday
- Estimate hours work in repository since 2015-01-31
$ git-hours --since 2015-01-31
- Estimate hours work in repository on the "master" branch
$ git-hours --branch master
For more details, visit https://github.com/kimmobrunfeldt/git-hours