Untracked Files Prevent Checkout
Move or commit them before checkout
View Files…
使用AndroidStudio切換分支的時候會報此錯誤,是由于有些檔案沒有commit是跟你要切換的分支檔案有沖突,是以提示去move或者commit這些檔案;
解決方法:
到項目工程目錄,右擊 選擇 Git Bash Here
輸入 git checkout -f 你的分支名稱
然後就會發現androidstudio已經切換了分支,當然分支名字不要輸錯