Skip to main content

Committing Empty Directories to Git Repository.

Project description

# GitEmptyDirs !!

Ever came up with a scenario where you have extracted a software platform and initialised a git repository on it so that you can start building things on it ? If in case, the extracted platform contains lot of empty directories, those directories don’t get committed to you repository which can lead to lot of errors for your co worker. GitEmptyDirs is helpful in those kind of scenarios. It creates an empty .gitignore file or copies a specified file in all empty folders so that every folder gets committed.

## Installation

Easily install using one simple command:

pip install git-empty-dirs

## Usage

GitEmptyDirs can be triggered in below ways.

  1. git_empty_dirs

It uses the current directory as the base directory and creates an empty .gitignore file in all empty directories.

  1. git_empty_dirs -b <path to base folder>

It uses the path provided as the base directory and creates an empty .gitignore file in all empty directories.

  1. git_empty_dirs -s <path to sample file>

It uses the current directory as the base directory and copies the sample file in all empty directories.

  1. git_empty_dirs -b <path to base folder> -s <path to sample file>

It uses the path provided as the base directory and copies the sample file in all empty directories.

For help please invoke git_empty_dirs -h

usage: git_empty_dirs [-h] [-b BASE_DIR] [-s SAMPLE_FILE]

optional arguments:
-h, --help show this help message and exit
-b BASE_DIR, --base-dir BASE_DIR
 Specify the base directory for searching empty directories
-s SAMPLE_FILE, --sample-file SAMPLE_FILE
 Specify the file to be copied to each empty directory

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for git-empty-dirs, version 0.7
Filename, size File type Python version Upload date Hashes
Filename, size git_empty_dirs-0.7-py3-none-any.whl (4.8 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size git_empty_dirs-0.7.tar.gz (2.9 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page