Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/git/22.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
git上没有要提交的内容,但我的分支上有一些更改_Git_Github_Gitlab_Phpstorm_Push - Fatal编程技术网

git上没有要提交的内容,但我的分支上有一些更改

git上没有要提交的内容,但我的分支上有一些更改,git,github,gitlab,phpstorm,push,Git,Github,Gitlab,Phpstorm,Push,我在项目中做了一些更改,但我无法在我的分支上提交git(另一个而不是分支主控) 我已向master发出拉取请求,因此无法在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(另一个而不是分支主控)

我已向master发出拉取请求,因此无法在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
如果忽略它,则不会添加/提交它。
(或者您需要强制git add:
git addd-f--a/file
,然后提交)

以下是我的猜测:

  • 您将更改隐藏起来,但没有将其解压缩;或
  • 更改已提交:
    • 在一次你忘记的承诺中;或
    • 在集成
      master
      时创建的合并提交内部

  • 这是基于您说您已向master发出拉取请求。

    您做了哪些更改,希望提交?关于某些代码您确定该文件在repo中吗?