:evergreen_tree: Hassle free .gitignore manager

View the Project on GitHub suyashmahar/pine


Hassle free .gitignore file manager. Pine uses GitHub’s existing gitignore repository to manage your .gitignore files, allowing fast and easy .gitignore management.


Before installing ensure that your system has git, awk and bash 4.0+ installed.

Run the following command in your terminal to download and install pine.

If you are using bash:

git clone "$HOME/pine" && echo 'export PATH="$HOME/pine:$PATH"' >> "$HOME/.bashrc" && source "$HOME/.bashrc"

If you are using zsh:

git clone "$HOME/pine" && echo 'export PATH="$HOME/pine:$PATH"' >> "$HOME/.zshrc" && source "$HOME/.zshrc"


Pine uses extremely simple CLI for managing .gitignore files, to add a new configuration to your .gitignore file just pass the name of configuration as a parameter:

[my-git-rep] $ pine c java kotlin clojure # Install configuration for 'c', 'java', 'kotlin' and 'clojure' 

This would update the .gitignore file present in the same directory with new configurations.

To remove an existing configuration from .gitignore use -r or --remove switch:

[my-git-rep] $ pine -r c java # Removes configuration for 'c' and 'java' from .gitignore file

Pine uses .gitignore files provided by GitHub, these files are often updated to fix bugs or add a new pattern. To update your local copy of gitignore files use -u or --update switch:

[my-git-rep] $ pine -u # Updates local repository of GitHub's gitignore files

For complete help use pine --help.




Delete ~/pine directory and remove the line export PATH="$HOME/pine:$PATH" from ~/.bashrc.


Pine relies on following components:


Feel free to file issues and submit pull requests - contributions are welcome.