美文网首页
Git已在版本控制中的文件重新加入忽略列表中

Git已在版本控制中的文件重新加入忽略列表中

作者: 有没有榴莲千层 | 来源:发表于2019-02-10 17:45 被阅读0次

    1、移除版本控制

    git rm --cache file         //忽略文件
    git rm --cache dir -r      //忽略整个目录
    

    2、写入 .ignore 文件

    file
    dir
    

    3、提交忽略

    git commit -m "add ignore"
    

    4、push到远程代码库

    git push
    

    原文:NODELOG

    相关文章

      网友评论

          本文标题:Git已在版本控制中的文件重新加入忽略列表中

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