0
git branch --track <localFeatureBranch> <remoteSVNBranch>
我在本地簽出的分支建立,當我拉,我可以看到一個本地分支了Git自動知道從哪裏
$ git pull
From .
* remote-tracking branch remoteSVNBranch -> FETCH_HEAD
Already up-to-date.
拉現在,我已經做了一些改動,並將其提交給本地分行 - 我想他們推到遠程存儲庫。當我做了很明顯的:
$ git status
# On branch localFeatureBranch
# Your branch is ahead of 'remoteSVNBranch' by 1 commit.
#
nothing to commit (working directory clean)
,然後嘗試推
$ git push
Everything up-to-date
它認爲我們都跟上時代的...但我們不是。我錯過了什麼?
就是這樣!感謝Alex。我在這裏找到了一些很好的支持細節:http://progit.org/book/ch8-1.html – 2012-02-03 20:15:59