SORU
7 Ocak 2012, CUMARTESİ


'git branch -av' artık uzak şube gösteriliyor

Bu belki aptalca bir soru olacak ama yeni gıt geldim ve artık var olmayan uzak bir dal görüyorum.

$ git branch -a
* master
  remotes/origin/master
  remotes/origin/production

Üretim Dalı uzaktan varolduğuna inanmıyorum ve hala yerel olarak gösteriyor nedenini çözemiyorum. Nasıl sil/bu şube kaldırabilir miyim? Bunu kaldırmak için bir girişim gibi görünüyor:

$ 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 'git@IP:puppet.git'

Güya uzak üretim şube teslim, ama şimdi bu var

$ 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

Ne yaptığıma dair hiçbir fikrim yok. Herhangi bir yardım mutluluk duyacağız.

CEVAP
7 Ocak 2012, CUMARTESİ


Yapmanız gereken:

git remote prune origin

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:
Git

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • FattySpins's channel

    FattySpins's

    17 Mayıs 2009
  • iBand IguJoo

    iBand IguJoo

    25 AĞUSTOS 2006
  • MugenPowerBatteries

    MugenPowerBa

    8 EKİM 2010