解决方案:# Please enter the commit message for your changes. Lines starting # with ‘#‘ will be ignored。

ゝ一纸荒年。 2022-10-28 13:25 230阅读 0赞

问题

使用git commit -a 提交的时候遇到

# Please enter the commit message for your changes. Lines starting with '#' will be ignored, and an empty message aborts the commit.的问题,

70

解决方案

提示你说是因为代码中带有注释,需要去掉注释,但是提交的数据本来就没有注释 怎么解决呢?

非常简单在git commit文件时指令为git commit -m “文件名”,这样就可以将文件提交到github里面,然后git push -u origin master即可

  1. ![70 1][]

发表评论

表情:
评论列表 (有 0 条评论,230人围观)

还没有评论,来说两句吧...

相关阅读