Skip to content

Instantly share code, notes, and snippets.

@iorionda
Created November 8, 2013 01:55
Show Gist options
  • Select an option

  • Save iorionda/7365046 to your computer and use it in GitHub Desktop.

Select an option

Save iorionda/7365046 to your computer and use it in GitHub Desktop.
Git で不要になったローカルブランチ・リモートブランチを削除する方法 ref: http://qiita.com/iori-o@github/items/c7e0aca399371068a9b8
% git branch
master
foo
bar
% git branch --delete foo
% git branch -D foo
% git branch --remote
origin/HEAD -> origin/master
origin/foo
origin/bar
% git branch --all
master
foo
bar
origin/HEAD -> origin/master
origin/foo
origin/bar
% git push --delete origin foo
% git push origin :foo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment