Это, наверное, немой вопрос, но я новичок в git и вижу удаленную ветку, которая больше не существует.'git branch -av' показывает удаленную ветку, которая больше не существует
$ git branch -a
* master
remotes/origin/master
remotes/origin/production
Я не верю, что производственная отрасль существует удаленно и не может понять, почему она все еще отображается локально. Как удалить или удалить эту ветку? Вот что попытка удалить это выглядит следующим образом:
$ git push origin :production
error: unable to push to unqualified destination: production
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 '[email protected]:puppet.git'
я могу оформить на якобы удаленной производственной отрасли, но получить это:
$ git checkout origin/production
Note: checking out 'origin/production'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
HEAD is now at c323996... added powerdns module, no really
Я понятия не имею, какого черта я делаю. Любая помощь будет оценена по достоинству.
Какой выход 'git branch -a' после' git fetch'? – alediaferia
все тот же. – CarpeNoctem
Возможный дубликат [Как принудительно удалить удаленную ветку в GitHub?] (Http://stackoverflow.com/questions/8754183/how-to-forcefully-delete-remote-branch-in-github) – Cascabel