is-git-branch A node CLI tool to check the current git branch. I use it in an npm script, before deploying with git ftp. Install npm install is-git-branch Use is-git-branch master && npm run deploy:production is-git-branch preprod,master && npm run deploy:preproduction