git 没有什么可提交的,但我的分支有一些更改

Nothing to commit on git, but I have some changes on my branch

我在项目中做了一些更改,但我无法在我的分支(另一个而不是分支主分支)上提交 git。

我已经从 master 那里发出了一个 pull request,但我无法提交 git:

marius@marius-Aspire-A515-51G:~/Proiecte/picboard-frontend-react$ git commit -a -m "wip"
On branch marius
nothing to commit, working tree clean

我能在这个案子上做什么?

如果修改后的文件在您的本地 Git 存储库中,请确保该文件未被忽略:

git check-ignore -v -- path/to/modified/file

忽略的话就不是added/committed.
(或者您需要强制 git 添加:git addd -f -- a/file,然后提交)

以下是我的猜测:

  1. 您存储了您的更改并且没有取消存储它们;或
  2. 更改已经提交:
    • 在您忘记的提交中;或
    • 在集成 master 时创建的合并提交中。

这是基于你说你已经从大师发出了拉取请求。