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

  • jocc talking shit

    jocc talking

    6 NİSAN 2007
  • MikeyMacintosh

    MikeyM

    28 Aralık 2009
  • The10HourMan

    The10HourMan

    28 EYLÜL 2012