2012-10-06 18 views
5

यहां मैंने जो कोशिश की है। उम्मीद है कि किसी को यह देखने और कुछ सुझाव देने का एक पल है। धन्यवाद!गिट रिबेस जारी नहीं कर सकता

संपादित करें: मेरा मानना ​​है कि मैं अपने ही सवाल का जवाब दे दिया है: https://stackoverflow.com/a/12760672/906794

  • क्लोन मेरी रेपो

    $ git clone leoj3n/roots 
    Cloning into 'roots'... 
    remote: Counting objects: 3177, done. 
    remote: Compressing objects: 100% (1362/1362), done. 
    remote: Total 3177 (delta 2117), reused 2761 (delta 1792) 
    Receiving objects: 100% (3177/3177), 1.40 MiB | 609 KiB/s, done. 
    Resolving deltas: 100% (2117/2117), done. 
    Checking out files: 100% (146/146), done. 
    
  • बदलें निर्देशिका

    $ cd roots 
    
  • स्थिति की जाँच

    +०१२३५१६४१०६
    roots(parent) $ git status 
    # On branch parent 
    nothing to commit (working directory clean) 
    
  • नदी के ऊपर

    roots(parent) $ git remote add upstream retlehs 
    roots(parent) $ git remote 
    origin 
    upstream 
    
  • लायें

    roots(parent) $ git fetch --all 
    Fetching origin 
    Fetching upstream 
    remote: Counting objects: 70, done. 
    remote: Compressing objects: 100% (30/30), done. 
    remote: Total 56 (delta 28), reused 51 (delta 23) 
    Unpacking objects: 100% (56/56), done. 
    From git://github.com/retlehs/roots 
    * [new branch]  classic -> upstream/classic 
    * [new branch]  grunt  -> upstream/grunt 
    * [new branch]  improve_sidebar_config -> upstream/improve_sidebar_config 
    * [new branch]  master  -> upstream/master 
    * [new branch]  vcard_refactor -> upstream/vcard_refactor 
    * [new tag]   5.1.0  -> 5.1.0 
    * [new tag]   5.2.0  -> 5.2.0 
    * [new tag]   6.0.0  -> 6.0.0 
    * [new tag]   6.1.0  -> 6.1.0 
    
  • रिबेस parent जोड़े पर upstream/master

    roots(parent) $ git rebase -i upstream/master 
    
    <<<<<< BEGIN WHAT I HAD IN vi >>>>>> 
    pick 4904103 improved url cleaning for child themes 
    s 986e6de added some is_child_theme() checks 
    s 2860aee urls now look like /child/css/* 
    s 4282ee0 Look for files in child, then in roots 
    p bf9a89a Now using Theme Hook Alliance 
    f 56d1211 Added THA utility script 
    f 7702269 Added missing hooks 
    f 14204d8 Support for multisite 
    f aca4577 No more multisite rewrites 
    f 8144b83 Revert some changes 
    pick fbf1dec Added filter to disable sidebars 
    pick 9b77e72 Added font-awesome 
    f 161864d Remove test code 
    <<<<<< END WHAT I HAD IN vi >>>>>> 
    

    तब मैं इस त्रुटि मिलती है:

    error: could not apply 4904103... improved url cleaning for child themes 
    
    When you have resolved this problem, run "git rebase --continue". 
    If you prefer to skip this patch, run "git rebase --skip" instead. 
    To check out the original branch and stop rebasing, run "git rebase --abort". 
    Could not apply 4904103... improved url cleaning for child themes 
    
  • संघर्ष

    roots(parent|REBASE-i) $ git mergetool 
    merge tool candidates: opendiff kdiff3 tkdiff xxdiff meld tortoisemerge gvimdiff diffuse ecmerge p4merge araxis bc3 emerge vimdiff 
    Merging: 
    lib/config.php 
    
    Normal merge conflict for 'lib/config.php': 
        {local}: modified file 
        {remote}: modified file 
    Hit return to start merge resolution tool (opendiff): 
    2012-10-06 05:10:11.363 FileMerge[22088:707] Unable to load platform at path /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform 
    2012-10-06 05:10:11.364 FileMerge[22088:707] Unable to load platform at path /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform 
    

    नोट मैं कुछ त्रुटियाँ Opendiff चलाने के समाधान करें।

  • Done resolving conflicts, so continue

    roots(parent|REBASE-i) $ git rebase --continue 
    You must edit all merge conflicts and then 
    mark them as resolved using git add 
    
  • Huh? स्थिति की जाँच करें:

    roots(parent|REBASE-i) $ git status 
    # Not currently on any branch. 
    # You are currently rebasing. 
    # (all conflicts fixed: run "git rebase --continue") 
    # 
    # Changes to be committed: 
    # (use "git reset HEAD <file>..." to unstage) 
    # 
    # modified: lib/config.php 
    # modified: lib/htaccess.php 
    # 
    # Untracked files: 
    # (use "git add <file>..." to include in what will be committed) 
    # 
    # lib/config.php.orig 
    
  • निकालें मर्ज बैकअप फ़ाइल

    roots(parent|REBASE-i) $ rm lib/config.php.orig 
    
    roots(parent|REBASE-i) $ git status 
    # Not currently on any branch. 
    # You are currently rebasing. 
    # (all conflicts fixed: run "git rebase --continue") 
    # 
    # Changes to be committed: 
    # (use "git reset HEAD <file>..." to unstage) 
    # 
    # modified: lib/config.php 
    # modified: lib/htaccess.php 
    # 
    
  • जारी rebase

    roots(parent|REBASE-i) $ git rebase --continue 
    You must edit all merge conflicts and then 
    mark them as resolved using git add 
    
  • हम्म, सब कुछ

    roots(parent|REBASE-i) $ git add -A 
    
    roots(parent|REBASE-i) $ git rebase --continue 
    You must edit all merge conflicts and then 
    mark them as resolved using git add 
    
जोड़ने का प्रयास करें

यह तब हुआ जब मैंने इसे छोड़ दिया और यह एसओ बनाया। सवाल।


यहाँ कुछ अधिक जानकारी है:

roots(parent|REBASE-i) $ git diff-files --ignore-submodules 
:100644 100644 f65cf1dc4573c51e54d7cf3772d06caf96726616 0000000000000000000000000000000000000000 assets/js/vendor/jquery-1.8.2.min.js 

मुझे लगता है कि यह mergetool से कोई लेना देना ऊपर त्रुटियां opendiff-नोटिस पड़ सकता है।

roots(parent|REBASE-i) $ git config --list 
user.name=xxxxxx 
user.email=xxxxxx 
credential.helper=osxkeychain 
alias.pu=!git fetch origin -v; git fetch upstream -v; git merge upstream/master 
alias.co=checkout 
alias.ci=commit 
alias.rb=rebase 
color.ui=auto 
core.excludesfile=/Users/xxxxxx/.gitignore_global 
core.repositoryformatversion=0 
core.filemode=true 
core.bare=false 
core.logallrefupdates=true 
core.ignorecase=true 
core.precomposeunicode=false 
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/* 
[email protected]:leoj3n/roots.git 
branch.parent.remote=origin 
branch.parent.merge=refs/heads/parent 
remote.upstream.url=git://github.com/retlehs/roots.git 
remote.upstream.fetch=+refs/heads/*:refs/remotes/upstream/* 

आश्चर्य की बात है, मैं टोर्टोइसेमर्ज का उपयोग करके अपनी विंडोज मशीन पर रीबेज करने में सक्षम था।

+1

आपको प्राप्त होने वाले स्थिति संदेश से, मुझे लगता है कि आपको कम से कम गिट 1.7.12 चलाना होगा, इस मामले में "आपको सभी विलय विवादों को संपादित करना होगा और फिर [..]" त्रुटि आउटपुट है जब 'गिट diff-files --quiet --ignore-submodules' गैर-शून्य निकास कोड के साथ निकलता है। क्या आप बस 'गिट diff-files --ignore-submodules' चला सकते हैं और आउटपुट को अपने प्रश्न में पेस्ट कर सकते हैं? –

+0

अंत में संपादन देखें। – leoj3n

+0

बहुत अजीब - मुझे यकीन नहीं है कि क्यों 'संपत्ति/जेएस/विक्रेता/jquery-1.8.2.min.js'' git diff-files' आउटपुट में दिखाई दे रहा है, लेकिन 'गिट स्थिति' नहीं है। क्या वह फाइल इस समय काम कर रहे पेड़ में मौजूद है? –

उत्तर

3

ऐसा लगता है कि फ़ाइल समय बंद होने की वजह से समस्या थी। इस रेपो नेटवर्क डिस्क पर है और पहुँचा/दोनों Windows और मैक द्वारा संशोधित किया गया है ...

सभी मुझे क्या करने की जरूरत है, ऐसा लगता है, एक भी विन्यास आइटम बदलने है ...

git config --global core.trustctime false 

समाधान https://stackoverflow.com/a/5255700/906794

+2

कौन सोचा था। खुशी है कि आपको अपना उत्तर – Ikke

+0

भी मिला है http://www.git-tower.com/blog/make-git-rebase-safe-on-osx – leoj3n

संबंधित मुद्दे