在本地clone下码云的一个代码库之后,然后在这个目录下新建了两个空文件夹,

当使用 git commit -m 'commit'时,报如下 错误:

git commit提示Your branch is up-to-date with ‘origin/master‘.

原因:空文件夹下没有文件,在空文件夹下创建一个文本文件,再次提交,则没有问题。

git commit提示Your branch is up-to-date with ‘origin/master‘.

得出结论:git代码提交时,空文件夹提交不了,必须确保有真实的文件存在。

相关文章:

  • 2022-12-23
  • 2021-06-11
  • 2021-06-18
  • 2022-12-23
  • 2021-07-11
  • 2022-12-23
  • 2021-11-01
  • 2021-05-20
猜你喜欢
  • 2021-09-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-17
  • 2021-06-02
  • 2021-10-04
相关资源
相似解决方案