Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 17 days 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 (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-08-05T16:23:49.000Z (over 10 years ago)
- Last Synced: 2024-04-15T12:32:58.920Z (7 months ago)
- Language: Shell
- Size: 156 KB
- Stars: 2
- Watchers: 3
- 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"
```