最近往自己的github传代码时,每一步都正常,但最后push上去之后是空目录,且在本地执行git status时提示:

git push后是空目录,且提示modified content, untracked content

git push后是空目录,且提示modified content, untracked content

后来发现是由于push的工程下本来就有个.git目录,所以才导致push上去的是空目录,删除掉工程中的.git文件,重新push,则成功!

git push后是空目录,且提示modified content, untracked content

相关文章:

  • 2021-08-18
  • 2022-01-07
  • 2021-09-11
  • 2022-12-23
  • 2021-12-08
  • 2022-12-23
  • 2022-12-23
  • 2021-07-07
猜你喜欢
  • 2021-12-07
  • 2021-10-25
  • 2021-08-03
  • 2021-06-12
  • 2022-12-23
  • 2021-11-04
相关资源
相似解决方案