我使用團隊基礎服務上載Android Studio項目TFS服務器上團隊服務/ TFS變化 我的項目成功添加到使用 VSC -> Import into version control -> Import into Team services git
機器人工作室提交
服務器,但是當我試圖改變任何代碼在活動中點擊VSC -> Commit changes
彈出消息返回no changes detected
爲什麼?
我使用團隊基礎服務上載Android Studio項目TFS服務器上團隊服務/ TFS變化 我的項目成功添加到使用 VSC -> Import into version control -> Import into Team services git
機器人工作室提交
服務器,但是當我試圖改變任何代碼在活動中點擊VSC -> Commit changes
彈出消息返回no changes detected
爲什麼?
我卸載Git和重新安裝一遍我也從零開始上傳項目和提交優秀作品
請嘗試以下項目以縮小問題:
嘗試運行命令$ git status
(需要安裝Git bash的回購下運行命令),以檢查是否有任何錯誤 消息有。如果得到這樣的錯誤:bad index file sha1 signature, fatal: index file corrupt
。剛剛嘗試刪除index
文件,然後下面的命令(參考此線程:How to resolve "Error: bad index – Fatal: index file corrupt" when using Git):復位
del .git\index git reset
要運行命令:安裝的Git的bash >>去Git倉庫和右 - 點擊項目文件夾>>Git bash here >>在Git bash中運行命令。
轉到文件,你已經改變,右鍵點擊> 同步,那麼它會覈對手動最後一個。再次提交。
瞭解Android Studio使用Git,你可以參考一下Version Control System using Git on Android Studio。
首先在哪裏運行此命令? $ git status – Amalo
@Amalo Install [Git bash](https://git-for-windows.github.io/)>>轉到git存儲庫並右鍵單擊項目文件夾>> Git bash here >>運行命令Git bash –
@Amalo你解決了這個問題嗎?任何更新? –
是否有出有任何錯誤消息?直接用'git commit'命令提交更改怎麼辦? –
單擊提交時的相同信息 – Amalo