hadialqattan / gitcln

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

Home Page:https://pypi.org/project/gitcln

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool


WARNING: gitcln IS DEPRECATED IN FAVOR OF git clean -fdx


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 Alqattan

πŸ“ License

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


Give a ⭐️ if this project helped you!

About

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

https://pypi.org/project/gitcln

License:MIT License


Languages

Language:Python 100.0%