Created
November 1, 2015 13:21
-
-
Save danielshir/06f19845fdf894a804a0 to your computer and use it in GitHub Desktop.
Revisions
-
danielshir created this gist
Nov 1, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,2 @@ # Useful command to delete remote branches that are merged to currently checked out HEAD git branch -a --merged | grep BAK | grep -v <CURRENT_BRANCH_NAMEHERE> | sed 's/[ ]*remotes\/origin\///' | xargs -I name git push origin :name