Skip to content

xgqfrms/remove-git-commit-history

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

remove-git-commit-history

https://github.com/xgqfrms/remove-git-commit-history

git filter-branch

https://www.cnblogs.com/xgqfrms/p/13338946.html

# $ git clone https://github.com/xgqfrms/remove-git-commit-history
$ git clone git@github.com:xgqfrms/remove-git-commit-history.git

$ cd github/remove-git-commit-history

$ git filter-branch --force --index-filter \
  "git rm --cached --ignore-unmatch tools/sensitive-data.md" \
  --prune-empty --tag-name-filter cat -- --all

# OR ???
$ git filter-branch --force --index-filter "git rm --cached --ignore-unmatch tools/sensitive-data.md" --prune-empty --tag-name-filter cat -- --all

SSH !== HTTPS

https://www.cnblogs.com/xgqfrms/p/13339250.html

About

remove-git-commit-history

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published