git-obliterate
Delete specific files and erase their history from a Git repository. Part of git-extras. More information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-obliterate>.
Install
- All systems
-
curl cmd.cat/git-obliterate.sh
- Debian
-
apt-get install git-extras - Ubuntu
-
apt-get install git-extras - Kali Linux
-
apt-get install git-extras - Fedora
-
dnf install git-extras - Windows (WSL2)
-
sudo apt-get updatesudo apt-get install git-extras - OS X
-
brew install git-extras - Raspbian
-
apt-get install git-extras
Delete specific files and erase their history from a Git repository. Part of git-extras. More information: <https://github.com/tj/git-extras/blob/master/Commands.md#git-obliterate>.
-
Erase the existence of specific files:
git obliterate file_1 file_2 ... -
Erase the existence of specific files between 2 commits:
git obliterate file_1 file_2 ... -- commit_hash_1..commit_hash_2
© tl;dr; authors and contributors