Skip to content

Instantly share code, notes, and snippets.

@TmanTman
Created October 9, 2018 09:31
Show Gist options
  • Save TmanTman/745d43cb93523d97ba63671b83e8387c to your computer and use it in GitHub Desktop.
Save TmanTman/745d43cb93523d97ba63671b83e8387c to your computer and use it in GitHub Desktop.
NPM script that force pushes current branch to remote branch
{
"scripts": {
"deploy-poc": "BRANCH=$(git branch | grep \\* | cut -d ' ' -f2) && git push origin $BRANCH:poc/deploy -f"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment