Próbuję usunąć zdalną gałąź git za pomocą
git push origin :my_remote_branch
i otrzymuję:
error: unable to push to unqualified destination: my_remote_branch
The destination refspec neither matches an existing ref on the remote nor
begins with refs/, and we are unable to guess a prefix based on the source ref.
error: failed to push some refs to 'git@example.com:/myrepo'
to są moje obecne gałęzie
git branch -a
* develop
master
remotes/origin/HEAD -> origin/master
remotes/origin/develop
remotes/origin/my_remote_branch
git branch -r --merged
origin/HEAD -> origin/master
origin/develop
origin/master
Wszelkie pomysły, jak pozbyć się tej gałęzi będą mile widziane.
git fetch, ale to nie pomogło. Spróbuje poszukać prostszego rozwiązania przed próbą ręcznego usunięcia pliku.
git fetch -paby pozbyć się przestarzałych gałęzi śledzących.
git fetchsprawdzić, czy naprawił tę nieistniejącą zdalną nazwę? Czy próbowałeś wejść do swojego.git\refs\remotes\origini usunąćmy_remote_branchplik, aby sprawdzić, czy to wystarczy?