Create git repository for GitHub style:
README.md(as seen here!)LICENSECODE_OF_CONDUCT.md(optional).bumpversion.toml(optional)SECURITY.md(optional).github/CODEOWNERS(optional).github/FUNDING.yml(optional).github/pull_request_template.md(optional)
According to --project-style (currently only go available)
.github/workflows/go-test.yml.github/workflows/go-lint.yml.github/dependabot.yml.golangci.yml
Install from source;
go install github.com/vigo/git-init-githubrepo/cmd/git-init-githubrepo@latestor
brew install vigo/git-init-githubrepo/git-init-githubrepoYou can use with standard git command. -h, --help or help will display
help :)
$ git init-githubrepo -h
NAME:
git-init-githubrepo - create GitHub friendly git repository with built-in README, LICENSE and more...
USAGE:
git-init-githubrepo [global options] command [command options]
VERSION:
0.4.1
AUTHOR:
Uğur “vigo” Özyılmazel <ugurozyilmazel@gmail.com>
COMMANDS:
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--bash-completion generate bash-completion code (default: false)
--full-name FULLNAME, -f FULLNAME your FULLNAME (default: "Uğur Özyılmazel")
--username USERNAME, -u USERNAME your GitHub USERNAME (default: "vigo")
--email EMAIL, -e EMAIL your contact EMAIL (default: "ugurozyilmazel@gmail.com")
--project-name NAME, -p NAME NAME of your project
--project-style value, --ps value style of your project
--repository-name NAME, -r NAME NAME of your GitHub repository
--license LICENSE, -l LICENSE add LICENSE (default: "mit")
--list-licenses, --ll list licenses (default: false)
--list-project-styles, --lps list project styles (default: false)
--disable-bumpversion do not create .bumpversion.cfg and badge to README (default: false)
--disable-coc do not add CODE_OF_CONDUCT (default: false)
--disable-codeowners do not add CODEOWNERS file (default: false)
--disable-fork do not add fork information to README (default: false)
--disable-funding do not add FUNDING.yml file (default: false)
--disable-issue-template do not create ISSUE_TEMPLATE folder and files (default: false)
--disable-license do not add LICENSE file (default: false)
--disable-security do not create SECURITY.md file (default: false)
--disable-pull-request-template do not create pull_request_template.md file (default: false)
--help, -h show help
--version, -v print the version
AVALILABLE LICENSE(S) (9):
- `apache-20`: Apache License 2.0
- `bsl-10`: Boost Software License 1.0
- `gnu-agpl30`: GNU Affero General Public License v3.0
- `gnu-gpl30`: GNU General Public License v3.0
- `gnu-lgpl30`: GNU Lesser General Public License v3.0
- `mit`: MIT
- `mit-na`: MIT No Attribution
- `moz-p20`: Mozilla Public License 2.0
- `unli`: The Unlicense
AVALILABLE PROJECT STYLE(S) (1):
- `go`
EXAMPLES:
$ git init-githubrepo -p "My Awesome Project" -r "hello-world"
$ git init-githubrepo -p "My Awesome Project" -r "hello-world" --disable-fork
$ git init-githubrepo -p "My Awesome Project" -r "hello-world" --disable-fork --disable-bumpversion
$ git init-githubrepo -p "My Awesome Project" -r "hello-world" --disable-fork --disable-bumpversion --disable-coc
$ git init-githubrepo -p "My Awesome Project" -r "hello-world" --disable-fork --disable-bumpversion --disable-coc --disable-license
$ git init-githubrepo -p "My Awesome Project" -r "hello-world" --license gnu-agpl30
$ git init-githubrepo -p "My Awesome Project" -r "hello-world" --license moz-p20Command fetches some variables from git configuration as default.
--full-name: default is yourgit config user.nameif exists--username: default is yourgit config github.userif exists--email: default is yourgit config user.emailif exists. Email will be used forCODE_OF_CONDUCTfile.--license: default license type ismit.--disable-licensedo not add license information toREADMEand do not createLICENSEfile--disable-fork: do not add fork information toREADME--disable-bumpversion: do not create.bumpversion.cfgfile--disable-coc: do not create add code of conduct informationREADMEand do not createCODE_OF_CONDUCTfile
Required flags are:
--project-name: Name of your project (title of your project)--repository-name: The name you gave when creating the project on GitHub (ex: github.com/USERNAME/REPOSITORYNAME)
Let’s start a new project. Let’s cd to /tmp:
$ git init-githubrepo -p "My Awesome Project" -r "hello-world"
your new project is ready at /tmp/hello-world
$ ls -al /tmp/hello-world/
total 16K
drwxr-xr-x 7 vigo wheel 224 Jun 14 13:15 .
drwxrwxrwt 23 root wheel 736 Jun 14 13:15 ..
drwxr-xr-x 9 vigo wheel 288 Jun 14 13:15 .git
-rwxr-xr-x 1 vigo wheel 182 Jun 14 13:15 .bumpversion.toml
-rwxr-xr-x 1 vigo wheel 3.2K Jun 14 13:15 CODE_OF_CONDUCT.md
-rwxr-xr-x 1 vigo wheel 1.1K Jun 14 13:15 LICENSE.md
-rwxr-xr-x 1 vigo wheel 942 Jun 14 13:15 README.mdFor bash-completion add:
eval "$(git-init-githubrepo --bash-completion)"to your bash profile! (bash completion automatically shipped with brew tap!)
- Uğur Özyılmazel - Creator, maintainer
- Yiğithan Karabulut - Contributor
All PR’s are welcome!
fork(https://github.com/vigo/git-init-githubrepo/fork)- Create your
branch(git checkout -b my-feature) commityours (git commit -am 'add some functionality')pushyourbranch(git push origin my-feature)- Than create a new Pull Request!
This project is licensed under MIT
This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.