how to remove git commit history
how to remove git commit history
如何删除 GitHub 仓库的历史数据
git filter-branch
remove GitHub git commit history
$ git clone https://github.com/xgqfrms/xgqfrms
# git checkout gh-pages
$ cd github/xgqfrms
$ git filter-branch --force --index-filter \
"git rm --cached --ignore-unmatch tools/WebStrom-2016.2.4.md" \
--prune-empty --tag-name-filter cat -- --all
# what's `\` & `""` means in git cli???
$ git filter-branch --force --index-filter "git rm --cached --ignore-unmatch tools/WebStrom-2016.2.4.md" --prune-empty --tag-name-filter cat -- --all
GitHub 敏感数据删除政策
https://docs.github.com/cn/github/site-policy/github-sensitive-data-removal-policy
提交 DMCA 反对通知的指南
https://docs.github.com/cn/github/site-policy/guide-to-submitting-a-dmca-counter-notice
从仓库中删除敏感数据
https://docs.github.com/cn/github/authenticating-to-github/removing-sensitive-data-from-a-repository
https://docs.github.com/en/github/authenticating-to-github/removing-sensitive-data-from-a-repository
英语书信模版
Dear Sirs/Madams,
1. by mistake
2. delete the commit history
3. no time, busy
4. poor English
your sincere friend xgqfrms
Thanks for your time!
Yours sincerely,
xgqfrms
https://github.com/github/dmca/blob/master/2018/11/2018-11-15-Jetbrains.md
Yours sincerely, 书信
DCMA
https://github.com/github/dmca
https://support.github.com/contact
https://support.github.com/contact/dmca-takedown
How to unlock my repo after DCMA takedown?
https://docs.github.com/cn/github/site-policy/dmca-takedown-policy
https://docs.github.com/cn/github/site-policy/guide-to-submitting-a-dmca-takedown-notice
git filter-branch
$ git filter-branch
https://docs.github.com/en/github/authenticating-to-github/removing-sensitive-data-from-a-repository
https://git-scm.com/book/en/v2/Git-Tools-Rewriting-History
https://git-scm.com/docs/git-filter-branch
BFG
java
$ wget http://repo1.maven.org/maven2/com/madgag/bfg/1.13.0/bfg-1.13.0.jar
$ git clone --mirror git://github.com/xgqfrms/remove-git-history.git
# cd remove-git-history.git
$ java -jar bfg.jar --delete-files "filename"
https://rtyley.github.io/bfg-repo-cleaner/
GitHub DMCA takedown
https://www.cnblogs.com/xgqfrms/p/13329322.html
refs
https://linux.cn/article-9374-1.html
https://github.com/rtyley/bfg-repo-cleaner/issues/36
https://w3guy.com/remove-git-commit-history/
remove git commit history
https://www.cnblogs.com/xgqfrms/p/13338946.html
©xgqfrms 2012-2020
www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/13338223.html
未经授权禁止转载,违者必究!