我想讓本地GIT存儲庫與遠程GIT和SVN存儲庫同步。永無止境的GIT故事 - 我在這裏做錯了什麼?
我正在執行步驟如下:
> git push
Everything up-to-date
> git pull
Already up-to-date.
好吧,我的遠程GIT回購似乎是罰款爲止。
> git svn rebase
First, rewinding head to replay your work on top of it...
Applying: Fixing some javadoc problems.
Using index info to reconstruct a base tree...
<stdin>:13: trailing whitespace.
\t
<stdin>:21: trailing whitespace.
\t\t\t\t<configuration>
<stdin>:22: trailing whitespace.
\t\t\t\t\t<links>
<stdin>:23: trailing whitespace.
\t\t\t\t\t\t<link>http://java.sun.com/javase/6/docs/api/</link>
<stdin>:24: trailing whitespace.
\t\t\t\t\t</links>
warning: squelched 1 whitespace error
warning: 6 lines add whitespace errors.
Falling back to patching base and 3-way merge...
Auto-merging lilith-parent/pom.xml
我替換\噸爲了清楚標籤。
這是我已經完成的合併,以前...
我現在有一個新的本地版本。
> git svn dcommit
[commits the new version to SVN... again...]
現在掌握和軀幹都在我的本地庫的頭。
> git push
To ssh://[email protected]/gitroot/lilith/lilith
! [rejected] master -> master (non-fast forward)
error: failed to push some refs to 'ssh://[email protected]/gitroot/lilith/lilith'
這意味着,據我所知,我必須首先執行一拉。 SOOOO ....
> git pull
Already uptodate!
Merge made by recursive.
這使我回到了最開始... :(沖洗和重複。
我有我的思念的感覺這裏有一點非常重要,任何人都可以向我解釋這一點嗎?
好吧,我能解決我的眼前的問題發出「混帳推產地:碩士其次是「混帳推出身」。這將我的git存儲庫重置爲更加健全的狀態(即沒有我在此期間創建的5個合併)。我想我會在未來避免與svn的重新同步,因爲這可能是不值得的。謝謝你的幫助! – Huxi 2009-10-25 21:38:29