在git commit時(shí)出現(xiàn)will not add file alias already exists in index(git上傳代碼出錯(cuò)),一個(gè)文件已經(jīng)存在的錯(cuò)誤练俐。
解決方法捶惜,清理commit里的緩存跌前,再重新commit和push吕嘀。
清除commit中的所以緩存命令:
git rm -r --cached .
清除后再重新commit 和push;
在git commit時(shí)出現(xiàn)will not add file alias already exists in index(git上傳代碼出錯(cuò)),一個(gè)文件已經(jīng)存在的錯(cuò)誤练俐。
解決方法捶惜,清理commit里的緩存跌前,再重新commit和push吕嘀。
清除commit中的所以緩存命令:
git rm -r --cached .
清除后再重新commit 和push;