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.

Source Distribution

git_empty_dirs-0.7.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

git_empty_dirs-0.7-py3-none-any.whl (4.8 kB view details)

Uploaded Python 3

File details

Details for the file git_empty_dirs-0.7.tar.gz.

File metadata

  • Download URL: git_empty_dirs-0.7.tar.gz
  • Upload date:
  • Size: 2.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for git_empty_dirs-0.7.tar.gz
Algorithm Hash digest
SHA256 59a445d67ce065268ec82bd808812f7dcb505ff56a822a5349e7c71b0d9f51d1
MD5 26021917ae0ccd955b6c23756776bea8
BLAKE2b-256 42b661b63ea9fb0a23d4e345b35003b07eb32acda8df91ab0a7c0c69bbe60f65

See more details on using hashes here.

File details

Details for the file git_empty_dirs-0.7-py3-none-any.whl.

File metadata

  • Download URL: git_empty_dirs-0.7-py3-none-any.whl
  • Upload date:
  • Size: 4.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.18.4 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for git_empty_dirs-0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 a5d21512302e8bd6316f854feb343d731f837f42b63975645662a43753931a56
MD5 476b447ef4951a6d355440cd913df5a7
BLAKE2b-256 c291f7d63e6ec79e8aa709f3abaefd70b2796c0c6256796e30f7403cecdece9a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page