Git 您同时拥有xxx和xxx/yyy.zz错误:构建树时出错
当我运行git status时,我会有如下情况:Git 您同时拥有xxx和xxx/yyy.zz错误:构建树时出错,git,Git,当我运行git status时,我会有如下情况: $ git status # On branch assets # Changes to be committed: # (use "git reset HEAD <file>..." to unstage) # # modified: index.html # new file: sections # new file: sections/asset/asset.ctrl.js # new file:
$ git status
# On branch assets
# Changes to be committed:
# (use "git reset HEAD <file>..." to unstage)
#
# modified: index.html
# new file: sections
# new file: sections/asset/asset.ctrl.js
# new file: sections/asset/asset.tpl.html
#
# Changes not staged for commit:
# (use "git add/rm <file>..." to update what will be committed)
# (use "git checkout -- <file>..." to discard changes in working directory)
#
# deleted: sections
你知道我如何提交我的工作吗?我通过
git rm -r --cached sections
git commit -m "blalblalba"
git add .
git commit -m "2blablalbla"
我已经没有问题了,所以无法确认这是否有效,但是谢谢你的回答。有效!谢谢,伙计
git rm -r --cached sections
git commit -m "blalblalba"
git add .
git commit -m "2blablalbla"