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

  • Google Developers

    Google Devel

    23 AĞUSTOS 2007
  • TheJoeycool2010

    TheJoeycool2

    12 Temmuz 2010
  • TV nEW

    TV nEW

    25 AĞUSTOS 2012