Skip to content

Instantly share code, notes, and snippets.

@miyohide
Last active November 25, 2020 12:26
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 miyohide/8db401001412660a88bb7cc8c3b62790 to your computer and use it in GitHub Desktop.
Save miyohide/8db401001412660a88bb7cc8c3b62790 to your computer and use it in GitHub Desktop.
よく使うGitコマンド

マージ済みのブランチ(現在のブランチ、develop、master以外)を表示する

git branch --merged | egrep -v '*|develop|master'

マージ済みのブランチ(現在のブランチ、develop、master以外)を削除する

git branch --merged | egrep -v '*|develop|master' | xargs git branch -d

既にリモートで削除されているブランチを消す

git fetch --prune

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment