美文网首页
github误提交文件处理

github误提交文件处理

作者: 流月汐志 | 来源:发表于2019-06-30 17:51 被阅读0次
    git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch 文件名' --prune-empty --tag-name-filter cat -- --all
    
    git push origin master --force
    
    rm -rf .git/refs/original/
    
    git reflog expire --expire=now --all
    
    git gc --prune=now
    
    git gc --aggressive --prune=now
    

    转载于: https://www.jianshu.com/p/573c1d2fe9fd

    相关文章

      网友评论

          本文标题:github误提交文件处理

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