Why does submitting htemes/next always fail?
$ git add -i
staged unstaged path
1: unchanged +0/-0 themes/next
*** Commands ***
1: status 2: update 3: revert 4: add untracked
5: patch 6: diff 7: quit 8: help
What now> 4
No untracked files.
$ git add -A
$ git status
On branch blog
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
(commit or discard the untracked or modified content in submodules)
modified: themes/next (modified content)
no changes added to commit (use "git add" and/or "git commit -a")
Use git add .
Even if you use the add i command, you should not choose the 4, because your file has not been tracked before. 4 is suitable for newly added files, so I think you should choose 2, or use the git add file name format instead
1. First
git status
查一下是否发生版本冲突了2.如果没问题就
git rm --cache themes/next
delete it from the library and try adding it againgit commit -m "updated"
First of all, the poster’s problem is not that he cannot submit it but that he cannot join the temporary storage area. I have encountered such a problem before using the git plug-in of VS, maybe because the file has not been modified at all. I suggest you open that file and save it. In addition, for further confirmation, check the changes in that file in
git add
之前可以使用git diff
.