/git-skeleton

Skeleton git project

Primary LanguageShellMIT LicenseMIT

Git Skeleton

Introduction

A skeleton project. Feel free to fork and adapt. Pull requests welcome.

Usage

The following command:

  • Asks for an installation directory
  • Asks for a skeleton origin URL
  • Clones the origin
  • Overwrites installation directory with src/ directory
  • Initialises an empty Git repository in the installation directory
(ORIGIN="https://github.com/markchalloner/git-skeleton" && \
echo -n "Installation directory (use . for current): " && read TARGET && \
git clone "${ORIGIN}" "${TARGET}" && \
find "${TARGET}" -mindepth 1 -maxdepth 1 ! \( -name 'src' -o -name '.' -o -name '..' \) -exec rm -rf {} \; && \
shopt -s dotglob && mv "${TARGET}/src/"* "${TARGET}" && rm -rf "${TARGET}/src" && \
cd "${TARGET}" && git init && \
echo "Done. Have a nice day")

Once checked out update the follwoing files with the project name (search {project}):

Change log

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.