幫助!我的git回購在泡菜!本地和遠程git回購是不同的,但表明「已經最新」
推送和拉本地和遠程分支機構說Already up-to-date.
但檢查文件顯示它們之間的差異。
這很複雜,因爲我有兩個本地分支,master和staging,每個分支都跟蹤相同的遠程版本。
我花了幾個小時試圖找出一個系統的方法來解決這個問題。但我擔心我會變得更糟,並在這個過程中失去編輯。
在這些情況下是否有推薦的方法?
EDIT
->git remote show origin
* remote origin
Fetch URL: [email protected]:mygits/myrepo.git
Push URL: [email protected]:mygits/myrepo.git
HEAD branch (remote HEAD is ambiguous, may be one of the following):
master
staging
Remote branches:
master tracked
staging tracked
Local refs configured for 'git push':
master pushes to master (up to date)
staging pushes to staging (up to date)
克隆你的遠程分支到第一個地方,以防你把它搞砸了。 – Alex 2012-04-23 17:09:39
你確定'git status'乾淨嗎?假設是這樣,重要的是人們能夠幫助你解釋你當前的分支是什麼,以及你使用的是什麼形式的'git pull'和'git push'命令,特別是如果你是指定其他參數。 – 2012-04-23 17:10:34
請顯示您使用的命令,以便我們看到分支機構的使用情況。 – 2012-04-23 17:10:50