Streamline your repository creation process
initGit
automates a few tiny things that I have to do every time I make a new repository.
- Adds a
LICENCE
- Adds a
.gitignore
- Creates a project layout using predefined templates
- Runs
git init
and commits these things for you - Adds a remote (or doesn't) of your choosing
Alternatively, it'll do only a select subset of those options, if you so desire.
initGit includes a few templates. A template defines files and directories to create and commands to run. The included ones can be used as examples, and are:
If you add your own template, feel free to submit a PR to have it included in the project.
- Go >= 1.15 (1.15 being the earliest version tested on)
- Python 3 (for building)
You may need to change the go:generate
declaration in internal/data/data.go
to point to the correct version of Python installed on your system.
- Clone the repo
git clone https://github.com/codemicro/initGit.git
- Build
cd initGit go generate github.com/codemicro/initGit/... go build github.com/codemicro/initGit/cmd/initGit
- Run!
sudo chmod +x initGit ./initGit
Distributed under the MIT License. See LICENCE
for more information.