A lightweight solution to retrieve gitignore templates from Github's gitignore templates repo
You can build the project from source by following these commands:
git clone https://github.com/catneep/getignore.git
cd getignore
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
git clone https://github.com/catneep/getignore.git
Set-Location getignore
py -m venv venv
. venv/scripts/activate
pip install -r requirements.txt
Run the included build script and add output to your PATH
./build.ps1
python3 getignore.py -{option} {name}
py getignore.py -{option} {name}
Options:
- h or --help: Display help
- r: Retrieve from the root of the repo (Used by default)
- c: Retrieve from the "community" directory
- g: Retrieve from the "Global" directory
- l: Retrieve from local cache (Uses "root" as a remote fallback)
-
Python gitignore template
python3 getignore.py python
-
KiCad gitignore template
python3 getignore.py kicad
-
Fortran gitignore template
python3 getignore.py fortran
This will output the contents of the template, to save into a new file you can do the following:
python3 getignore.py typescript > .gitignore
Or append to an existing gitignore:
python3 getignore.py typescript >> .gitignore