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

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

# Please enter the commit message for your changes. Lines starting # with

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

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

       

# Please enter the commit message for your changes. Lines starting # with