Git commit and push error未提交的更改:



我有提交和推送客户端的问题,我得到这个错误:

On branch VersionOne
Your branch is up to date with 'origin/VersionOne'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
(commit or discard the untracked or modified content in submodules)
modified:   client (modified content)
no changes added to commit (use "git add" and/or "git commit -a")

在我从客户端推送我的文件之前,但是我创建了后端文件并且不能从客户端提交,所以我在顶级目录中创建了新的分支并添加了它们,客户端没有推送。

我解决了这个问题,通过移动到客户端文件夹,这是内部存储库或子模型,并删除所有的git文件,执行:

  1. cmd在窗口
  2. cd到我的项目
  3. run del/F /S /Q /A .git
  4. 在根目录下再次启动git,并把所有

注意:请确保在任何情况下备份所有内容

最新更新