Skip to content

Instantly share code, notes, and snippets.

@ayies128
Last active November 29, 2016 07:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ayies128/da4987fb1992b174424cd3813654cbba to your computer and use it in GitHub Desktop.
Save ayies128/da4987fb1992b174424cd3813654cbba to your computer and use it in GitHub Desktop.
delete local branch
# マージしたものだけ消す
% git branch --delete [branch名]
# マージ関係なく消す
% git branch -D [branch名]
# 全部消す
% git branch --merged | grep -v '*' | xargs git branch -D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment