Setup
Once you've installed Gitamic, you'll need to update your application's configuration. This is usually a one-time thing for each Statamic site where you use Gitamic.
1. Register the add-on within Statamic
Update your config/statamic/editions.php
config file to indicate that you're using the pro
edition of Gitamic:
2. [Optional] Set the commit author details
By default, Gitamic uses the following details for the git committer name and email address:
name:
Gitamic
email:
gitamic@[domain from APP_URL]
You can easily override these values in your .env
by adding the following keys, e.g.:
Alternatively, publish the Gitamic config file to your application. This should already happen as part of the add-on's installation, but for some reason it doesn't exist, run the following command in your terminal:
Then, if you prefer your whole team to use the same committer details, you can hard-code these settings into the config/gitamic.php
config file.
If you'd like to use the details of the logged-in Statamic user as the committer, you will need to enable the gitamic.use_authenticated
option in config/gitamic.php
:
3. [Optional] Play nicely with Statamic Pro
This will leave you to manage your commits via Gitamic, if that's what you prefer.
To disable Statamic's automatic commits, add the following to your .env
file:
Last updated
Was this helpful?