https://github.com/kaelzhang/git-perm-rm
Permanently remove a file or directory from a git repo.
https://github.com/kaelzhang/git-perm-rm
Last synced: 3 months ago
JSON representation
Permanently remove a file or directory from a git repo.
- Host: GitHub
- URL: https://github.com/kaelzhang/git-perm-rm
- Owner: kaelzhang
- License: other
- Created: 2013-09-10T03:55:47.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-08-05T16:23:49.000Z (almost 11 years ago)
- Last Synced: 2025-03-25T13:16:16.385Z (3 months ago)
- Language: Shell
- Size: 156 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE-MIT
Awesome Lists containing this project
README
# git-perm-rm
Permanently remove a file or directory from a git repo including all related commit records.
It's a very usefull script to get your git repo more sexy and slim, but at the meantime, it is dangerous and irreversible !
## Usage
### Remove directories
```sh
# bash
cd /your/repo
git-perm-rm node_modules temp -r
```
### Remove file(s)```
cd /your/repo
git-perm-rm index.js
```## Install
Install with npm
```sh
npm install -g git-perm-rm
```Or, clone the repo, edit your `~/.bashrc` file, add the following code:
```sh
alias="bash /your/repo/git-perm-rm.sh"
```