This Chassis extension lets you specify a list of strings that will be appended to the .git/info/exclude file within the Chassis repository's root directory. This lets you augment Chassis' own .gitignore rules to include files (such as generated keys) which should not appear in any diff or git status check performed on the Chassis checkout.
This can improve housekeeping within your Chassis checkout, but should be unnecessary for the majority of Chassis sites.
- Clone this into the
extensionsfolder of your Chassis installation, or listgitignorein your Chassis configuration file's extensions list. - Specify one or more items in a
gitignore:list within your configuration file, as in the example below. - Run
vagrant upif you have not yet initialized your virtual machine, orvagrant provisionif your VM is already up and running.
Any git diff or git status command run within the Chassis repository checkout should now exclude the patterns listed in your configuration file.
Exclude .key files in your Chassis directory, and a specific individual file, from the Chassis git repository checkout.
# config.local.yaml
gitignore:
- '*.key'
- 'some-specific-file-to-exclude.txt'