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

前端 未结 6 890
逝去的感伤
逝去的感伤 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:21

    What happening here is that you are in your root Folder Folder and You want to push all your children to git repository.So a git file is created.And if you get a untraceable or untracked file error the reason is some on your childen directories also have a git repository with it.You can delete the git repository from the untracked or untraceable folder by command ---->rmdir -Force -Recurse .git This command will delete the local git repo in your untracebale or untracked directory and once again go to your root folder and type the same command. Reinitialize the git repo and its Done!!!

提交回复
热议问题