This is a template for common scripts that can be used in any project.
Ensure you have the following lines in your .gitignore
file:
# script-templates
## Ignore all subdirectories under scripts (script-template folders)
scripts/*/
## Except for the hooks folder (allows to hook into several script-template scripts)
!scripts/hooks/
## Recursively ignore any file ending with .local.sh (local files which you wont want to commit)
scripts/*.local.sh
scripts/**/*.local.sh
Install the script-template:
# clone
git clone --depth 1 -b "master" "[email protected]:SoureCode/public-common-script-template.git" "scripts/public-common"
# cleanup
./scripts/public-common/___cleanup.sh