github只能删除文件不能删除文件夹
所以只能通过指令来完成
git rm -r --cached XXX #--cached不会把本地的删除
git commit -m 'delete XXX dir'
git push -u origin master
由于手动在github上删除了文件,和本地不同步,提交不上,所以先把github上的pull下来的时候,它显示了标题MERGE_MSG的恼人的空编辑器。git pull origin master --no-edit 来设置环境变量GIT_MERGE_AUTOEDIT 为 no。
网友评论