SORU
22 Ocak 2010, Cuma


Kök Gıt işlemek düzenlemek?

Taahhüt: daha sonra gelen mesajı değiştirmek için yolu vardır

git commit --amend                    # for the most recent commit
git rebase --interactive master~2     # but requires *parent*

Nasıl değiştirmek ilk commit üstü) ileti işlemek mümkün müdür?

CEVAP
22 Ocak 2010, Cuma


Temiz bir çalışma ağacı olduğunu varsayarak, aşağıdakileri yapabilirsiniz.

# checkout the root commit
git checkout <sha1-of-root>

# amend the commit
git commit --amend

# rebase all the other commits in master onto the amended root
git rebase --onto HEAD HEAD master

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

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Erica Griffin

    Erica Griffi

    8 HAZİRAN 2009
  • Jaclyn W

    Jaclyn W

    5 Mayıs 2006
  • MugenPowerBatteries

    MugenPowerBa

    8 EKİM 2010