Last active
February 26, 2020 19:39
-
-
Save rmariuzzo/e97921b2892ce7a6816442a4aa1c6a48 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git checkout master | |
git pull origin master | |
git branch | grep -v "master\|develop" | xargs git branch -D |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "npx-git-rebase-master", | |
"version": "0.0.0", | |
"bin": "./run.js", | |
"files": ["run.js", "git-restart.sh"], | |
"dependencies": { | |
"shelljs": "latest" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
require('shelljs').exec('./git-restart.sh') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment