Awesome
<div align = "center"> <h1><a href="https://2kabhishek.github.io/gitrim">gitrim</a></h1> <a href="https://github.com/2KAbhishek/gitrim/blob/main/LICENSE"> <img alt="License" src="https://img.shields.io/github/license/2kabhishek/gitrim?style=flat&color=eee&label="> </a> <a href="https://github.com/2KAbhishek/gitrim/graphs/contributors"> <img alt="People" src="https://img.shields.io/github/contributors/2kabhishek/gitrim?style=flat&color=ffaaf2&label=People"> </a> <a href="https://github.com/2KAbhishek/gitrim/stargazers"> <img alt="Stars" src="https://img.shields.io/github/stars/2kabhishek/gitrim?style=flat&color=98c379&label=Stars"></a> <a href="https://github.com/2KAbhishek/gitrim/network/members"> <img alt="Forks" src="https://img.shields.io/github/forks/2kabhishek/gitrim?style=flat&color=66a8e0&label=Forks"> </a> <a href="https://github.com/2KAbhishek/gitrim/watchers"> <img alt="Watches" src="https://img.shields.io/github/watchers/2kabhishek/gitrim?style=flat&color=f5d08b&label=Watches"> </a> <a href="https://github.com/2KAbhishek/gitrim/pulse"> <img alt="Last Updated" src="https://img.shields.io/github/last-commit/2kabhishek/gitrim?style=flat&color=e06c75&label="> </a> </div>Tool to trim accidentally pushed or obsolete files from git history.
Installation
Clone this repo using:
git clone https://github.com/2kabhishek/gitrim
cd gitrim
# Setup symlink, make sure target directory is added to PATH
ln -sfnv $PWD/gitrim.sh ~/Applications/bin
Usage
Run gitrim
and you'll be asked to enter full path of the repo.
After this you are presented a menu from where you can select the various commands to execute.
More Info
Blog Post with some discussion.