作者allenlinli (allen)
看板MacDev
標題[問題] git commit後 file在xcode中消失
時間Tue Sep 25 00:58:12 2012
我使用xcode搭配git 發生大問題 請大大們解答
我 checkout 較早的 git commit
結果檔案消失了
我又再 checkout 其他的 commit 看看
結果更多檔案消失了
後來去查看finder 發現那些檔案都在
只是要add file回去時 都顯示為灰色 而無法加進去
請問我該如何回復原本的檔案?
我剛轉到xcode 4.5不久 使用git經驗也不多
不知道是不是xcode 4.5的bug?
還是checkout不是那樣使用的?
又或者是不同同時打開xcode專案和用 command line 來 commit?
請大大拯救我的檔案了orz
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.32.76.202
1F:→ Fantasywind:checkout是切換branch吧 09/25 09:11
2F:推 offname:git check out和svn check out 不要搞混了 09/25 11:00
3F:推 ah7675:git checkout revision是不能對檔案庫操作的 要check out 09/25 13:05
4F:→ ah7675:到head再stage or commit 09/25 13:06
5F:→ ah7675:還有checkout的時候如果舊rev的snapshot沒有某些檔案 09/25 13:07
6F:→ ah7675:work directory的檔案會保留 否則會刪除或conflict 09/25 13:08