The following command:
$ git branch -a
yields
* develop
master
remotes/origin/HEAD -> origin/develop
remotes/origin/develop
remotes/origin/feature/foo
remotes/origin/master
but I don’t want remotes/origin/feature/foo branch. What could I have done to have this? How do I delete it?
I’ve tried this:
git push origin --delete origin/feature/foo
but I get this:
error: unable to push to unqualified destination: origin/feature/foo
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 '...my remote repo...'
Any ideas? Many thanks :).
When you call
gitreally seeswhat means “push
feature/foo(left side) to remotesfeature/foo(right side).With
you push “nothing” to
feature/foo