SORU
2 Kasım 2011, ÇARŞAMBA


&Quot;git branch" ve "git checkout-b" ne fark var?

git checkout -b yeni bir şube oluşturmak için kullanılır. git branch aynı şeyi yapar bence. Nasıl bu iki komut varsa hepsi de farklı farklı mı?

CEVAP
2 Kasım 2011, ÇARŞAMBA


git checkout -b BRANCH_NAME yeni bir şube oluşturur ve git branch BRANCH_NAME yeni bir şube oluşturur ama aynı dal üzerinde yapraklar ise yeni şube için de geçerli.

Diğer bir deyişle git checkout -b BRANCH_NAME senin için aşağıdakileri yapar.

git branch BRANCH_NAME    # create a new branch
git checkout BRANCH_NAME  # then switch to the new branch

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

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • EatingIn

    EatingIn

    12 EKİM 2013
  • LG Mobile Global

    LG Mobile Gl

    2 EYLÜL 2010
  • mist64

    mist64

    30 Mayıs 2006