How to fix “modified content, untracked content” in git?

前端 未结 6 874
逝去的感伤
逝去的感伤 2020-12-24 11:29

The objective is to commit a git branch. The output of \"git status\" for the branch is:

On branch zeromq_new
Your branch is up to date with         


        
6条回答
  •  春和景丽
    2020-12-24 12:25

    What I did was to run:

    git rm -rf --cached myuntrackedfolder
    

    This tells git to forget about it (since it was being tracked formally).

    Then I used:

    git add myuntrackedfolder 
    

    to add it and I was good to go.

提交回复
热议问题