- nodejs
- nodemone
- simple-git
npm install
Of the desired repo in variable repoPath, i. e.:
repoPath = '/home/mypath/to/my/git-repository'
Add into the array, all branches you want to delete from your local machine and remote, i. e.:
branches = ['test1', 'test2', 'test3', 'test4'];
Options: 'local', 'remote' or 'both'
Go into this script folder and run the script by
npm terminate
or
node index.js
or in watchmode
npm start