This repository contains setup scripts and templates to initialize different kinds of git repositories. by running an interactive script When this script finishes, the repository will be ready to use!
(sort of...)
- In the root folder of the repository you want to setup, run:
git clone https://github.com/k0kazpt/repoinit.git
- To "uninstall" (meaning, removing from the root repository tree) simply run:
If you wish to "re-install", re-run step 1. above.
rm -rf repoinit
After the Installation:
- Run:
repoinit/start.sh
- Choose option "1":
### START USING YOUR REPOSITORY ### (to abort, Ctrl-C) -> Please choose the repo type you -> want to configure or to rebuild -> the configuration! What do you want to do? 1) First Time Setup 2) Reset config #? 1 - Choose the which repository type you wish to configure:
Which type of repository will this be? 1) generic 2) terraform #? 1 - If at any time you are asked for sudo privileges, input your password accordingly (you will only be asked once):
[sudo] password for XXXXX: - When presented with the following question (git-chglog configuration):
fill this and all following questions with the presented default values:
? What is the URL of your repository?? What is the URL of your repository? https://github.com/k0kazpt/test-cookiecutter ? What is your favorite style? github ? Choose the format of your favorite commit message <type>(<scope>): <subject> ? What is your favorite template style? keep-a-changelog ? Do you include Merge Commit in CHANGELOG? Yes ? Do you include Revert Commit in CHANGELOG? Yes ? In which directory do you output configuration files and templates? .chglog - ✔ Finished!! ✔
-> Repo setup successfull!
- Run:
repoinit/start.sh
- Choose option "2":
### START USING YOUR REPOSITORY ### (to abort, Ctrl-C) -> Please choose the repo type you -> want to configure or to rebuild -> the configuration! What do you want to do? 1) First Time Setup 2) Reset config #? 2 - You'll be shown the following message:
-> Resetting repository metadata: rm -f ../.repo_metadata/.DONE 2>/dev/null rm -f ../.repo_metadata/.repo_* 2>/dev/null -> To reconfigure, run ./repoinit/start.sh again! - To reconfigure, follow the instructions in Setting up your repository
https://www.conventionalcommits.org/
Read the pre-commit hooks document for more info.
Read the git-chglog document for more info.