SORU
22 Mayıs 2012, Salı


Git bir çekme sırasında yaşadıkları değişiklikler lehine birleştirme çakışmaları gidermek

Nasıl gidermek git çekti değişiklikler lehine çatışma birleştirme?

Temelde çatışmalar tüm üzerinden gitmek zorunda kalmadan bir çalışma ağaçta çakışan değişiklikleri kaldırmak için git mergetool Bir süre tüm çatışma-ücretsiz değişiklikleri tutmak istiyorum. Tercihen çekerken bunu, sonra değil.

CEVAP
22 Mayıs 2012, Salı


Özyinelemeli kullanabilirsinizonlarınkistrateji:

git merge --strategy-option theirs

man:

ours
    This option forces conflicting hunks to be auto-resolved cleanly by 
    favoring our version. Changes from the other tree that do not 
    conflict with our side are reflected to the merge result.

    This should not be confused with the ours merge strategy, which does 
    not even look at what the other tree contains at all. It discards 
    everything the other tree did, declaring our history contains all that
    happened in it.

theirs
    This is opposite of ours.

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

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • Menglong Tav

    Menglong Tav

    18 Temmuz 2010
  • YEAH1TV

    YEAH1TV

    19 ŞUBAT 2009