Skip to content

codemicro/initGit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

initGit

Streamline your repository creation process

MIT License Lines of code Go Report Card


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.

Prerequisites

  • Go >= 1.15 (1.15 being the earliest version tested on)
  • Python 3 (for building)

Installation

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.

  1. Clone the repo
    git clone https://github.com/codemicro/initGit.git
  2. Build
    cd initGit
    go generate github.com/codemicro/initGit/...
    go build github.com/codemicro/initGit/cmd/initGit
  3. Run!
    sudo chmod +x initGit
    ./initGit

License

Distributed under the MIT License. See LICENCE for more information.

About

Streamline your repository creation process

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published