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 发布文章使用:只允许注册用户才可以访问!
how to remove git commit history的更多相关文章
- [Practical Git] Filter commit history with git log arguments
In the last lesson, we learned how to format the git log output; in this lesson we will learn how to ...
- [Git] Use git add --patch for better commit history and mitigating bugs
Let's split our changes into separate commits. We'll be able to check over our changes before stagin ...
- git commit 之后 push 之前,想删除 个别的commit 文件
git rm --cached <file_name> git commit "删除了<file_name>文件" git rm --cached < ...
- git commit -s -m 注释中的换行 [加入signed-off-by
windows环境下的Git Bash中注释的换行: 使用单引号. 或者是在Linux系统里面用终端 git add . git commit -m ' . this is the test . up ...
- 提交变更(git commit)
当所有的变更都进入暂存区,就可以使用git commit进行提交了 $ git commit 执行这句话后,会弹出文本编辑区(自己配置的或默认的),文本编辑器可能会显示如下内容 # Please en ...
- git add , git commit 添加错文件 撤销
1. git add 添加 多余文件 这样的错误是由于, 有的时候 可能 git add . (空格+ 点) 表示当前目录所有文件,不小心就会提交其他文件 git add 如果添加了错误的文件的话 撤 ...
- git commit 合并
日常 git 管理代码的时候,经常因为因为一些小的代码改动而进行一次 git commit , 但是这样造成的后果就是小的 git commit 很多很杂. 今天特意的研究了一些 git commit ...
- 写一个体验良好的git commit
一直在使用git也看过格式各样commit log , review 代码时最刺激的是看到这类 "." 应付差事,还有 "fix bug","fix& ...
- Git 发生Another git process seems to be running in this repository, e.g. an editor opened by 'git commit'.错误
Git 发生 Unable to create 'D:/Model/test/.git/index.lock': File exists. Another git process seems to b ...
随机推荐
- git branch --set-upstream-to=
test@uat:/usr/server/app_server# git config --local -lcore.repositoryformatversion=0core.filemode=tr ...
- SpringBoot Web 学习
SpringBoot Web 开发 静态资源 打开WebMvcAutoConfiguration类里面的静态类WebMvcAutoConfigurationAdapter里面的addResourceH ...
- mysql中int型的数字怎么转换成字符串
字段:number 是integer类型 在表test中 select cast(number as char) as number from test; 或者convert()方法.因为转换 ...
- MySQL的索引为什么用B+Tree?InnDB的数据存储文件和MyISAM的有何不同?
前言 这篇文章的题目,是我真实在面试过程中遇到的问题,某互联网众筹公司在考察面试者MySQL相关知识的第一个问题,我当时还是比较懵的,没想到这年轻人不讲武德,不按套路出牌,一般的问MySQL的相关知识 ...
- Linux 配置永久辅助IP
1.什么是辅助IP 辅助IP来源于Linux之中,Linux的系统网卡可以支持多IP的绑定,而辅助IP多用于解耦解决服务之间的兼容性问题,常见的应用场景有: 虚拟IP,高可用飘逸: 永久临时IP解耦使 ...
- jquery each报 Uncaught TypeError: Cannot use 'in' operator to search for错误
用$.each()来遍历后台传过来的json数据.直接遍历传过来的数据时就发生 Uncaught TypeError: Cannot use 'in' operator to search for 这 ...
- Educational Codeforces Round 43
Educational Codeforces Round 43 A. Minimum Binary Number 显然可以把所有\(1\)合并成一个 注意没有\(1\)的情况 view code / ...
- HDU 3488-Tour KM
为什么可以这样拆点在 这道题 都已经证明过 代码: 1 //题目上面说了"The only exception is that the first and the last city sho ...
- Codeforces Round #613 (Div. 2) B. Just Eat It! (DP)
题意:有一个长度为\(n\)的序列,找出最大的长度不为\(n\)的子段和,问最大子段和是否小于所有元素和. 题解:最大子段和我们可以直接用dp来找,每次状态转移为:\(dp[i]=max(dp[i-1 ...
- python中is,== 和 in 的区别
python对象的三个基本要素:id(身份标识),type(数据类型)和value(值). is 运算符:判断的是对象间的唯一身份标识(id). == 运算符:判断的是对象间的value(值)是否相同 ...