Skip to content

Instantly share code, notes, and snippets.

@Icaruk
Last active March 16, 2021 15:25
Show Gist options
  • Save Icaruk/a279886ab3c52c8dd8467e4fb7522efa to your computer and use it in GitHub Desktop.
Save Icaruk/a279886ab3c52c8dd8467e4fb7522efa to your computer and use it in GitHub Desktop.
// package.json
{
"scripts": {
"devToMaster": "git checkout dev && git pull && git checkout master && git pull && git merge dev && git push && git checkout dev",
"mergeTo": "git checkout %npm_config_from% && git pull && git checkout %npm_config_to% && git pull && git merge %npm_config_from% && git push && git checkout %npm_config_from%"
}
}
// npm run devToMaster
// npm run mergeTo --from=dev --to=master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment