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

英語書信模版

email


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


Flag Counter

©xgqfrms 2012-2020

www.cnblogs.com 發布文章使用:只允許注冊用戶才可以訪問!



免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM