Skip to content

Commit

Permalink
Fix for zsh (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
prgTW authored and not-an-aardvark committed Dec 19, 2019
1 parent f36f2c0 commit 913c21b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This is useful if you work on a project that squashes branches into master. Afte
To run as a shellscript, simply copy the following command (setting up an alias is recommended). There's no need to clone the repo.

```bash
git checkout -q master && git for-each-ref refs/heads/ "--format=%(refname:short)" | while read branch; do mergeBase=$(git merge-base master $branch) && [[ $(git cherry master $(git commit-tree $(git rev-parse $branch^{tree}) -p $mergeBase -m _)) == "-"* ]] && git branch -D $branch; done
git checkout -q master && git for-each-ref refs/heads/ "--format=%(refname:short)" | while read branch; do mergeBase=$(git merge-base master $branch) && [[ $(git cherry master $(git commit-tree $(git rev-parse $branch\^{tree}) -p $mergeBase -m _)) == "-"* ]] && git branch -D $branch; done
```

### Node.js
Expand Down

0 comments on commit 913c21b

Please sign in to comment.