git에서 원격 분기를 삭제하고 싶습니다 ( remotes/me/ntopng).
$ git branch -a
* master
remotes/me/ntopng
remotes/origin/gh-pages
remotes/origin/go
remotes/origin/master
그러나 삭제하려고하면 다음이 발생합니다.
$ git push origin :remotes/me/ntopng
Username for 'https://github.com': Drewshg312
Password for 'https://Drewshg312@github.com':
remote: Permission to Homebrew/homebrew.git denied to Drewshg312.
fatal: unable to access 'https://github.com/Homebrew/homebrew/': The requested URL returned error: 403
그래서 https://github.com/Drewshg312/homebrew.git에 swithched :
git remote set-url origin https://github.com/Drewshg312/homebrew.git
그리고 얻었다 :
$ git push origin :ntopng
Username for 'https://github.com': Drewshg312
Password for 'https://Drewshg312@github.com':
To https://github.com/Drewshg312/homebrew.git
- [deleted] ntopng
그러나 지점은 여전히 거기에 있습니다.
$ git branch -a
* master
pork
scirius
remotes/Drewshg312/hb_custom_formulas
remotes/me/ntopng <----- STILL THERE!! WTF???
remotes/me/pork
remotes/me/scirius
remotes/origin/gh-pages
remotes/origin/go
remotes/origin/master
완전히 삭제하는 방법?