git-template-sync

Cherry picking updates from upstream template

Usage no npm install needed!

<script type="module">
  import gitTemplateSync from 'https://cdn.skypack.dev/git-template-sync';
</script>

README

git-template-sync

Cherry picking updates from upstream template. Based on rioam2/git-upstream-template


Build Status version MIT License

The problem

The github template functionlity is useful, but it lacks a way to get updates when the template repository gets updates. The repo from rioam2 works, but it breaks convential commits.

This solution

I used a lot of rioam2's code to start this package. Refactoring it and adding my way of working.

Table of Contents

Installation

This module should be installed as one of your project's devDependencies:

npm install --save-dev git-template-sync

Usage

as default git-template-sync looks for TEMPLATE_PATH in .env

git-template-sync

# you can pass the remoteUrl as a param
git-template-sync --remoteUrl <remoteUrl>

# as default git-template-sync uses main as the branch to fetch.
git-template-sync --branch <branch>

License

MIT