SORU
27 Aralık 2011, Salı


gıt otomatik tamamlama olmadan birleştirme

Bunu yapmak için, olası bir "" bir taahhüt olmadan, ama? git birleştirme.

< . p ^"adam gıt birleştirme" diyor:

With --no-commit perform the merge but pretend the merge failed and do not autocommit,
to give the user a chance to inspect and further tweak the merge result before
committing.

Ama gıt kullanmaya çalıştığımda-taahhüt yok, o hala otomatik olarak kaydeder --ile birleştirme. Yaptığım şey şu:

$> ~/git/testrepo$ git checkout master
Switched to branch 'master'

$> ~/git/testrepo$ git branch
* master
  v1.0

$> ~/git/testrepo$ git merge --no-commit v1.0
Updating c0c9fd2..18fa02c
Fast-forward
 file1 |    1  
 1 files changed, 1 insertions( ), 0 deletions(-)

$> ~/git/testrepo$ git status
# On branch master
# Your branch is ahead of 'origin/master' by 1 commit.
#
nothing to commit (working directory clean)

Bir sonraki "" v1 tüm taahhüt ortaya koyuyor.git log 0 ana şube birleşti.

CEVAP
27 Aralık 2011, Salı


Bu esnada çıkış not birleştirme - Fast Forward diyor

Bu gibi durumlarda, yapmak istiyorum:

git merge v1.0 --no-commit --no-ff

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

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • MugenPowerBatteries

    MugenPowerBa

    8 EKİM 2010
  • TrenchTech Computer Repair Tutorials

    TrenchTech C

    19 EYLÜL 2014
  • wwjoshdo

    wwjoshdo

    25 Mayıs 2009