git status總是提示Untracked files:

問題:在repo sync時總是提示

error: zephyr/: branch master is published (but not merged) and is now 1 commits behind

git diff爲空,git status顯示有文件修改。

Your branch is behind 'origin/master' by 1 commit, and can be fast-forwarded.
  (use "git pull" to update your local branch)

Untracked files:
  (use "git add <file>..." to include in what will be committed)

    .zephyr-env.sh.swn

git rm .zephyr-env.sh.swn 失敗,

 

解決辦法:執行git clean -f ,不行用git clean -d -fx


————————————————
版權聲明:本文爲CSDN博主「C_HW」的原創文章,遵循 CC 4.0 BY-SA 版權協議,轉載請附上原文出處鏈接及本聲明。
原文鏈接:https://blog.csdn.net/qq_24846887/article/details/95495136

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章