Skip to content

AleksaC/gitdispose

Repository files navigation

gitdispose

Remove useless .gitkeep files from your repo.

About

Git doesn't track empty directories. To include such directories you need to put a placeholder file inside them. A common (but unofficial) convention is to name these files .gitkeep.

This is used when scaffolding a project, and in project templates. Files are usually added later to those directories. However, the initial .gitkeep files are often left behind, no longer serving any purpose. This utility finds such files and removes them.

Getting started

pre-commit

The recommended way to use this utility is with pre-commit. Here's an example configuration:

repos:
  - repo: https://github.com/AleksaC/gitdispose
    rev: v0.1.0
    hooks:
      - id: gitdispose

Run pre-commit autoupdate to get the latest version.

About

Remove useless .gitkeep files from your repo

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Languages