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

  • Disney Pets and Animals

    Disney Pets

    29 ŞUBAT 2012
  • Sams Page :D

    Sams Page :D

    15 Mart 2009
  • Videogamerz | Call of Duty

    Videogamerz

    5 NİSAN 2012