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