repo - contains uncommitted changes

在使用repo sync同步代碼時候出現git

error: .repo/manifests/: contains uncommitted changes同步

出現這個問題的緣由是本地代碼發生變化,但未commitit

 

試着經過 git reset --hard來恢復全部變化的文件以後,依然存在上述問題,error

最後經過cd .repo/manifests 切換到 .repo/manifests目錄下執行git stash命令,並文件

經過git clean -f -d命令刪除變化記錄目錄,而後使用repo sync就能夠經過了。
 
 co

相關文章
相關標籤/搜索