Last active
September 13, 2017 01:14
-
-
Save ponsuke0531/368ad74a92a562786c1b3dfd6573e941 to your computer and use it in GitHub Desktop.
Gitでブランチを削除しようとして怒られた時の対応方法 ref: http://qiita.com/ponsuke0531/items/7835eaf129f212a6c8e9
This file contains 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 -d :feature/UBS_KENPO-6890 | |
fatal: --delete doesn't make sense without any refs |
This file contains 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 -d origin {ブランチ名} | |
Username for 'URL': {ユーザ名} | |
To {URL}.git | |
- [deleted] {ブランチ名} |
This file contains 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 checkout {削除対象以外のブランチ} | |
$ git branch -d {削除対象のブランチ} |
This file contains 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 -d origin {ブランチ名} |
This file contains 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 -r | grep {ブランチ名} | |
origin/{ブランチ名} | |
$ git push -d origin {ブランチ名} |
This file contains 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 :{ブランチ名} |
This file contains 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 {ブランチ名} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment