Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kamilmielnik/git-cleanse
Remove empty directories and files recursively
https://github.com/kamilmielnik/git-cleanse
Last synced: 7 days ago
JSON representation
Remove empty directories and files recursively
- Host: GitHub
- URL: https://github.com/kamilmielnik/git-cleanse
- Owner: kamilmielnik
- License: mit
- Created: 2017-05-13T20:32:29.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-17T17:45:37.000Z (over 6 years ago)
- Last Synced: 2024-12-26T17:03:36.164Z (13 days ago)
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# git-cleanse
## Description
This command line tool will recursively remove all empty files (except `.gitkeep`, `.hgkeep` & `.keep`) and empty directories (except `.git`, `.hg`, `.svn` & `node_modules`) from your file system, starting from your current working directory.This tool is not configurable.
Requires Node.js 6.0.0 or later.
## Use cases
1. When working in a team, you may encounter a situation where someone else renames (or deletes) a directory in your project. After syncing your local repository with remote, you will be left with directory structure that is of no use anymore.
2. You have redundant empty files in your project.Those files or directories may clutter your IDE, file system, or simply annoy you.
## Installation
```
npm install -g git-cleanse
```## Usage
Change your current working directory to your repository directory, eg.
```
cd ~/projects/my-project
```
Run `git-cleanse`
```
git-cleanse
```