2
所以在GitHubGUI,像往常一樣,我做了我的更改,然後點擊Commit&Sync
和一個短暫的時刻彈出「合併衝突」對話框,然後一切消失,我同步最新的變化與遠程回購。使用GitHub GUI來提交和同步,一切都消失
我所做的一切都消失了。
後,我不停地點擊commit&sync
我試圖修復合併錯誤後,這以前也發生過,但這次所有的一切就這樣消失了一樣,我會剛剛做了pull
命令和git不會明白我的承諾。
有什麼方法可以恢復這些已提交的文件嗎? GUI首先提交它們,然後推送它們。所以我覺得它必須去某個地方哈哈。
編輯:
做的:
git reflog show
ae0217a [email protected]{1}: rebase finished: returning to refs/heads/master
ae0217a [email protected]{2}: checkout: moving from master to a....(edited letters)
2729389 [email protected]{3}: commit: First side menu change : changed size, colors, and added icons
2bf6181 [email protected]{4}: pull: Fast-forward
所以「commit
」是[email protected]{3}
但我怎麼回去,或有我的變化出現在master
?
撤銷按鈕是否有助於恢復以前的狀態? http://stackoverflow.com/a/15545115/6309 – VonC
不得不這樣做: git reset --hard HEAD {3} 回到我的承諾,「消失」。 – kgaidis