git 误传二进制文件

git verify-pack -v .git/objects/pack/pack-*.idx | sort -k 3 -g | tail -5


git rev-list --objects --all | grep 86bab29452f7bf6b2bf0afd5950a2365e178ee89
git rev-list --objects --all | grep b234a94d1931abdec96fc730a1f8646d2882d354
git rev-list --objects --all | grep 1b79fb5730227f92981709e3b85e255d24359790
git rev-list --objects --all | grep 727b87183a585783da3b26fc9919701662e1c832
git rev-list --objects --all | grep 168f8810d627bbbc178684ced89802fb6d0b85ad




product-service/target/product-service.jar
product-thrift/target/apidocs/site/static/js/vendor.44f2e6326c27c78a290a.js
product-thrift/target/product-thrift-0.0.1-SNAPSHOT.jar
product-thrift/target/product-thrift.jar
product-thrift/target/apidocs/site/com.sankuai.tmall.be.product.html


git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch product-service/target/product-service.jar' --prune-empty --tag-name-filter cat -- --all
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch product-thrift/target/apidocs/site/static/js/vendor.44f2e6326c27c78a290a.js' --prune-empty --tag-name-filter cat -- --all
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch product-thrift/target/product-thrift-0.0.1-SNAPSHOT.jar' --prune-empty --tag-name-filter cat -- --all
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch product-thrift/target/product-thrift.jar' --prune-empty --tag-name-filter cat -- --all
git filter-branch --force --index-filter 'git rm --cached --ignore-unmatch product-thrift/target/apidocs/site/com.sankuai.tmall.be.product.html' --prune-empty --tag-name-filter cat -- --all




rm -rf .git/refs/original/
git reflog expire --expire=now --all
git gc --prune=now

git rm --cached .DS_Store
git rm --cached product-service/.DS_Store
git rm --cached product-service/src/.DS_Store
git rm --cached product-service/src/main/.DS_Store
git rm --cached product-service/src/main/java/.DS_Store
git rm --cached product-service/src/main/java/com/.DS_Store
git rm --cached product-service/src/main/java/com/sankuai/.DS_Store
git rm --cached product-service/src/main/java/com/sankuai/mtmall/.DS_Store
git rm --cached product-service/src/main/java/com/sankuai/mtmall/product/.DS_Store
git rm --cached product-service/src/main/java/com/sankuai/mtmall/product/service/.DS_Store
git rm --cached product-service/src/main/java/com/sankuai/mtmall/product/service/dal/.DS_Store
git rm --cached product-service/src/main/java/com/sankuai/mtmall/product/service/dal/entity/.DS_Store

https://www.ouyangsong.com/posts/60716/

https://blog.csdn.net/x_iya/article/details/77663915

发布了778 篇原创文章 · 获赞 323 · 访问量 209万+

猜你喜欢

转载自blog.csdn.net/lgh1992314/article/details/104937980