New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

git-cleanse

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-cleanse

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.

  • 1.0.10
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

FAQs

Package last updated on 17 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc