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



xgqfrms 2012-2020

www.cnblogs.com 发布文章使用:只允许注册用户才可以访问!


how to remove git commit history的更多相关文章

  1. [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 ...

  2. [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 ...

  3. git commit 之后 push 之前,想删除 个别的commit 文件

    git rm --cached <file_name> git commit "删除了<file_name>文件" git rm --cached < ...

  4. git commit -s -m 注释中的换行 [加入signed-off-by

    windows环境下的Git Bash中注释的换行: 使用单引号. 或者是在Linux系统里面用终端 git add . git commit -m ' . this is the test . up ...

  5. 提交变更(git commit)

    当所有的变更都进入暂存区,就可以使用git commit进行提交了 $ git commit 执行这句话后,会弹出文本编辑区(自己配置的或默认的),文本编辑器可能会显示如下内容 # Please en ...

  6. git add , git commit 添加错文件 撤销

    1. git add 添加 多余文件 这样的错误是由于, 有的时候 可能 git add . (空格+ 点) 表示当前目录所有文件,不小心就会提交其他文件 git add 如果添加了错误的文件的话 撤 ...

  7. git commit 合并

    日常 git 管理代码的时候,经常因为因为一些小的代码改动而进行一次 git commit , 但是这样造成的后果就是小的 git commit 很多很杂. 今天特意的研究了一些 git commit ...

  8. 写一个体验良好的git commit

    一直在使用git也看过格式各样commit log , review 代码时最刺激的是看到这类 "." 应付差事,还有 "fix bug","fix& ...

  9. 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 ...

随机推荐

  1. 配置完xadmin源码包后启动报错“ Apps aren't loaded yet.”

    raise AppRegistryNotReady("Apps aren't loaded yet.") django.core.exceptions. 碰到这种情况就要查看下是否 ...

  2. springboot开启多线程配置

    一.配置线程池参数 @EnableAsync @Configuration public class TaskExecutorConfig { @Bean public TaskExecutor ta ...

  3. 2021最新 Spring面试题精选(附刷题小程序)

    推荐使用小程序阅读 为了能让您更加方便的阅读 本文所有的面试题目均已整理至小程序<面试手册> 可以通过微信扫描(或长按)下图的二维码享受更好的阅读体验! 目录 推荐使用小程序阅读 1. S ...

  4. CF976B

    这是一道考验思维找规律的题,很有可做性. 正文 题意 一个 n * m 的矩阵,从左上角(1 , 1) 开始,先向下走直到最下方,再向右走到最右,再向上走一个,再走到最左......一直走到(1 , ...

  5. LOJ2195 旅行

    LOJ2195 旅行 题目描述S 国有 N 个城市,编号从 1 到 N.城市间用 N-1 条双向道路连接,满足从一个城市出发可以到达其它所有城市.每个城市信仰不同的宗教,如飞天面条神教.隐形独角兽教. ...

  6. linux 下解决mysql root 权限无法远程连接问题

    问题描述:MySQL数据库安装成功后,在服务器本地可以连接成功,但是使用工具navicat无法进行远程连接,如图: 原因:MySQL默认只允许root帐户在本地登录,如果要在其它机器上连接mysql, ...

  7. 利用powershell隐藏执行后门

    运行后门时,有些后门不能中断.双击运行这种后门会产生一个黑框. 一条命令就能使其在后台执行 命令解释: start-process启动一个进程 -windowstyle窗口样式 hidden隐藏

  8. 织梦dedecms用户注册时笔名去掉的方法

    修改目的:用户注册时不用输入笔名,实现系统自动同步用户名和用户笔名. 负责织梦dedecms用户注册的php文件是member/reg_new.php ,不难发现,用户注册时的用户名$userid,和 ...

  9. mysql高级day1

    Mysql高级-day01 MySQL高级课程简介 序号 Day01 Day02 Day03 Day04 1 Linux系统安装MySQL 体系结构 应用优化 MySQL 常用工具 2 索引 存储引擎 ...

  10. StringTable---字符串常量池的垃圾回收跟踪案例

    引言 很多人认为jvm字符串常量不会被回收的,其实这个说法的有误区的,我们通过一些jvm参数可以看到StringTable的垃圾回收. 案例说明 参数说明 参数 说明 -Xmx10m 堆空间大小 -X ...