Skip to content

Instantly share code, notes, and snippets.

@sbin0819
Created June 21, 2023 06:21
Show Gist options
  • Save sbin0819/a04313c99ae67a0d12f84e11adfff9b4 to your computer and use it in GitHub Desktop.
Save sbin0819/a04313c99ae67a0d12f84e11adfff9b4 to your computer and use it in GitHub Desktop.
grep -v master // master 제외
<!-- local branch 삭제 패턴 -->
```bash
git branch | grep "" | grep -v master | xargs git branch -D
```
<!-- remote branch 삭제 패턴 -->
```bash
```
```bash
git branch -r | grep -Eo 'greenkeeper/.*' | xargs -I {} git push origin :{}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment