[英]android studio commit changes on Team services/tfs
我正在使用Team Foundation Services在TFS服務器上上傳android studio項目我已使用VSC -> Import into version control -> Import into Team services git
將項目成功添加到服務器VSC -> Import into version control -> Import into Team services git
但是,當我嘗試更改活動中的任何代碼並單擊“ VSC -> Commit changes
彈出一條消息,未返回no changes detected
為什么?
請嘗試以下項目以縮小問題范圍:
嘗試運行命令$ git status
(您需要安裝Git bash才能在存儲庫下運行命令),以檢查是否存在任何錯誤消息。 如果得到這樣的錯誤: bad index file sha1 signature, fatal: index file corrupt
。 只需嘗試刪除index
文件,然后使用以下命令重置即可( 使用Git時,請參考以下線程: 如何解決“錯誤:索引錯誤–致命:索引文件損壞” ):
del .git\\index git reset
運行命令:安裝Git bash >>轉到git倉庫,然后在項目文件夾>> Git bash上單擊鼠標右鍵>>在Git bash中運行命令。
轉到您已更改的文件,然后右鍵單擊 > 同步 ,然后它將手動檢查最后一個文件。 再次提交。
對於具有Git的Android Studio ,您可以在Android Studio上使用Git引用版本控制系統 。
我卸載了Git並再次重新安裝它,我也從零開始上傳項目並提交工作正常
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.