美文网首页
删除github文件夹

删除github文件夹

作者: tracy_guo | 来源:发表于2018-04-21 20:02 被阅读0次

    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。

    相关文章

      网友评论

          本文标题:删除github文件夹

          本文链接:https://www.haomeiwen.com/subject/uxjflftx.html