git rm --cached and fatal: pathspec

前端 未结 3 1069
夕颜
夕颜 2021-01-07 19:50

I just tried to checkout my master branch and ran into:

error: Untracked working tree file \'app.xcodeproj/project.xcworkspace/xcuserdata/u.xcuserdatad/UserI         


        
3条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-07 20:14

    simple:

    git add file.ext
    git rm --cached file.ext
    

    or

    git add path/*
    git rm --cached path/*
    

提交回复
热议问题