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 ...
随机推荐
- Java多线程--两种实现方式
进程概述: 在这之前,有必要了解一下什么是进程? 在一个操作系统中,每个独立的执行的程序都可称为一个进程,也就是"正在运行的程序".如图所示: 线程概述: 如上所述,每个运行的程序 ...
- 反射型XSS
反射型XSS漏洞详解 http://www.ttlsa.com/safe/xss-description/ 一.原理 如果一个应用程序使用动态页面向用户显示错误消息,就会造成一种常见的XSS漏洞.通常 ...
- spark SQL(三)数据源 Data Source----通用的数据 加载/保存功能
Spark SQL 的数据源------通用的数据 加载/保存功能 Spark SQL支持通过DataFrame接口在各种数据源上进行操作.DataFrame可以使用关系变换进行操作,也可以用来创建临 ...
- 【机制】js的闭包、执行上下文、作用域链
1.从闭包说起 什么是闭包 一个函数和对其周围状态(词法环境)的引用捆绑在一起,这样的组合就是闭包. 也就是说,闭包让你可以在一个内层函数中访问到其外层函数的作用域. 在 JavaScript 中,每 ...
- Cloudera Manager安装部署
1.连接阿里云服务器 打开远程连接工具进行配置,这里以CRT为例. 1)新建一个session 2)填写hostname(填写公网ip) 2.修改hosts [root@hadoop001 ~]# v ...
- 【noi 2.6_2421】Exchange Rates(DP)
题意:起始有1000元美元,给出N天美元与加拿大元的汇率.问N天内可以不停的兑换,每次兑换需要收取3%的手续费,问可以得到的最大的美元数. 解法:直接用2个变量存第 i 天时手中是美元和加拿大元的最大 ...
- Educational Codeforces Round 89 (Rated for Div. 2)D. Two Divisors 线性筛质因子
题目链接:D:Two Divisors 题意: 给你n个数,对于每一个数vi,你需要找出来它的两个因子d1,d2.这两个因子要保证gcd(d1+d2,vi)==1.输出的时候输出两行,第一行输出每一个 ...
- hdu5433 Xiao Ming climbing
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others) Total Submission ...
- Jpress小程序
首页轮播.首页公告.首页宫格.个人中心页面均支持在PC后台设置内容 首页列表.分类列表页.搜索列表的文章展示页均支持后台设置,拥有三种风格 所有分类展示支持两种风格 用户中心授权登陆,查看个人数据 J ...
- Python_微信支付(云开发)
一.创建云开发小程序 1.初始化云开发环境 //app.js App({ onLaunch: function () { wx.cloud.init({ //初始化云开发环境 env: 'wxypay ...