We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Problems enabling automatic Git commits

Andy Smith December 4, 2020 by Andy Smith

In Statamic 3, I'm attempting to set up automatic Git commits when content is changed based on the Git Integration documentation. I've set up my .env variables like so:

# .env
STATAMIC_GIT_USER_NAME=[my GitHub username here]
STATAMIC_GIT_USER_EMAIL=[my GitHub email here]

All other settings in config/statamic/git.php are default.

Based on the documentation, it seems like that's all there is to it. When I modify a page and publish it from the Control Panel, I would expect a commit to be made and pushed to origin, but neither of those appear to be happening.

I tried manually running php please git:commit, but I got the following error:

There are no commands defined in the "git" namespace.

I've tried doing this both locally and in production with identical results.

I feel like I'm probably just missing some details here, but the official documentation seems to suggest otherwise. Anyone having similar issues?

>>>>>>> Unanswered <<<<<<<
8 Replies