Skip to content

Instantly share code, notes, and snippets.

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