ghdefaultbranches

command module
v0.0.0-...-4a12777 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 24, 2020 License: MIT Imports: 1 Imported by: 0

README

ghdefaultbranches

Go Report Card Maintainability

ghdefaultbranches displays information about the default branches of the most popular GitHub repos.

Build

go build

Run

% ./ghdefaultbranches
ghdefaultbranches displays information about the default branches of the most popular GitHub repos.

Usage:
  ghdefaultbranches [command]

Available Commands:
  details     Display the most popular repos and their default branch names
  help        Help about any command
  stats       Display the default branch names of the most popular repos and how often they are used

Flags:
  -h, --help             help for ghdefaultbranches
      --ignore strings   Comma-separated list of branch names that should be ignored
      --repos int        Number of repos to fetch, between 1 and 1000 (default 100)

Use "ghdefaultbranches [command] --help" for more information about a command.

Example Outputs

Stats
% ./ghdefaultbranches stats --repos=250 --ignore=master
Default Branch   Count
main             6
dev              5
devel            4
develop          3
3.x              2
canary           2
next             2
nw47             2
unstable         2
v1-dev           2
2nd-ed           1
development      1
moved            1
rm               1
v2               1
Details
% ./ghdefaultbranches details --repos=10
Rank   Stars    Name                                     Default Branch
1      313107   freeCodeCamp/freeCodeCamp                master
2      250352   996icu/996.ICU                           master
3      169109   vuejs/vue                                dev
4      154653   EbookFoundation/free-programming-books   master
5      153241   facebook/react                           master
6      147016   tensorflow/tensorflow                    master
7      143204   twbs/bootstrap                           main
8      137693   sindresorhus/awesome                     main
9      127137   jwasham/coding-interview-university      master
10     125325   getify/You-Dont-Know-JS                  2nd-ed

License

MIT

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL