Skip to main content

CLI tool aim to clean local git repository from .gitignore file(s)/folder(s).

Project description

Welcome to Gitcln 👋

CI CD Version Pyversions Docstrings: reStructuredText Code style: black License: MIT

CLI tool aim to clean local git repository from .gitignore file(s)/folder(s).

you can create or download .gitignore file and use this tool anywhere.

Installation ⚓

$ pip install gitcln

Usage 🗝

Arg Shortcut Type Description Default
--directories -d optional directory(ies) to ignore [ ]
--files -f optional file(s) to ignore [ ]
$ gitcln --help
usage: gitcln [-h] [-d [DIRECTORIES [DIRECTORIES ...]]] [-f [FILES [FILES ...]]]

CLI tool aim to clean local git repository from .gitignore file(s)/folder(s).

optional arguments:

  -h, --help            show this help message and exit

  -d [DIRECTORIES [DIRECTORIES ...]], --directories [DIRECTORIES [DIRECTORIES ...]]
                        Directory(ies) to ignore. (default: [])

  -f [FILES [FILES ...]], --files [FILES [FILES ...]]
                        File(s) to ignore. (default: [])

Examples :

  • Remove all .gitignore file(s)/folder(s) :
    $ gitcln
    
  • Remove all .gitignore file(s)/folder(s) except specific directory(ies) :
    $ gitcln -d __pycache__
    
  • Remove all .gitignore file(s)/folder(s) except specific file(s) :
    $ gitcln -f bytes.pyc
    

Tests 🧪

Only integration tests for gitcln module runs on the CI pipeline.

Roadmap 📈

  • Add additional CLI option to skip .gitignore ignores by unique comment.
  • Add .gitcln file to ignore file(s) folder(s) from scanning.
  • Filter .gitignore by section name.

Copyright ©

👤 Hadi Zaki Alqattan

📝 License

Copyright © 2020 Hadi Zaki Alqattan.
This project is MIT licensed.


Give a ⭐️ if this project helped you!

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

gitcln-20.4.4.tar.gz (5.7 kB view details)

Uploaded Source

Built Distribution

gitcln-20.4.4-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file gitcln-20.4.4.tar.gz.

File metadata

  • Download URL: gitcln-20.4.4.tar.gz
  • Upload date:
  • Size: 5.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for gitcln-20.4.4.tar.gz
Algorithm Hash digest
SHA256 dbcd010a05adef23c15bf86db808f999af85c19805204ac75b7d908cbf7245f9
MD5 a12cb6753a262a6a39fa2e28ef560e46
BLAKE2b-256 d3b252db40bd8f25b5aacef82ed4634f69f5cd22b60512e75e67fe0ab6ec9f72

See more details on using hashes here.

File details

Details for the file gitcln-20.4.4-py3-none-any.whl.

File metadata

  • Download URL: gitcln-20.4.4-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

File hashes

Hashes for gitcln-20.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 7fe440408d6b7c6056958f9529ba605bf41a59318131db290dbaa195cd49e78d
MD5 5ebd06d8306bcee964d11d2013422474
BLAKE2b-256 2354596e68cc99aa3c66563d537c2320441a2582aebc66864081b6210543a5dc

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