Git Cleaner CLI is a command-line tool designed to delete Git resources past any given period of time.
- Delete tags: Deletes all tags from an organization or repository that are marked as stale.
To install Git Cleaner CLI from the source, follow these steps:
curl -s -L https://github.com/gbh-tech/git-cleaner/releases/download/v0.3.0/git-cleaner-darwin-x64.tar.gz | tar xz
chmod +x git-cleaner
sudo mv git-cleaner /usr/local/bin
Once installed, you can use the git-cleaner command to generate .env files based on Werf or 1Password.
- tags: Delete all stale tags of any given period if they are older than the minimum to remain.
To generate a .env file using Werf:
./git-cleaner tag -o gbh-tech -r cockpit-api -n 5
Contributions are welcome! Please follow these steps to contribute:
- Fork the repository.
- Create a new branch (git checkout -b feature-branch).
- Make your changes.
- Commit your changes (git commit -m 'Add new feature').
- Push to the branch (git push origin feature-branch).
- Open a Pull Request.
This project is licensed under the MIT License. See the LICENSE file for details.