git-删除已经commit的文件并强制更新

【git-删除已经commit的文件并强制更新】git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch Spring/day04/32.编程式事务.rar' && git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch Svn_Maven/maven/maven/apache-maven-3.2.5/repr/repository/.cache/m2e/1.5.0/26522e0d83a422eed93329ece7565cfc/nexus-maven-repository-index.gz' && git filter-branch -f --index-filter 'git rm --cached --ignore-unmatch Svn_Maven/maven/maven/apache-maven-3.2.5/repr/repository/.cache/m2e/1.5.0/26522e0d83a422eed93329ece7565cfc/full/_26.cfs'
rm -rf .git/refs/original/ &&
git reflog expire --expire=now --all &&
git fsck --full --unreachable &&
git repack -A -d &&
git gc --aggressive --prune=now &&
git push --force [remote] master
转载于:https://www.cnblogs.com/xvnyata/p/8168936.html

    推荐阅读