Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

amadeann's avatar

New site - how to skip the 'add repository' step?

I am in the process of migrating an existing Wordpress site from shared hosting to Digital Ocean, using Forge.

My deployment process should be a simple git pull of the 'child theme' + composer update. I don't need to initialize the repository in the site root, as it is done by Forge by default

However, I can't find the option in Forge to skip the initial 'Git' setup after creating a new site. Do I always have to go through a git setup, then deleting it, and generating it manually in my 'child theme' directory?

To be precise, I am talking about skipping this step: https://ibb.co/dkcW0J

0 likes
2 replies
Cronix's avatar

I don't understand why you just wouldn't set it up to point to your repo. Then you just click the deploy button and it does the "git pull" etc for you so you don't have to ssh into the server and do it manually, or you can set it up for automatic deployments so whenever you merge into your master branch (or whatever branch you tell it) in git, it will detect it and automatically deploy it to the server.

Since you're already using git, why do you want to skip setting it up?

amadeann's avatar

@Cronix

This is just a Wordpress intricacy. I am not interested in managing the deployment of the entire app with Forge, only part of it, living in a subfolder like:

~/example.com/wp-content/themes/myapp

Updates of the Wordpress app are managed in the Wordpress dashboard, what I am deploying with 'one-click' are updates to my theme.

I already set it up the way I need, but in the process of doing it Forge deleted the entire Wordpress app, and overwritten contents of ~\example.com with contents of my git repo. I didn't want that. I had to then delete what forge did, upload entire app (this is a one-off thing), initialize the repo in the subfolder mentioned above, and modify the script generated by forge.

I am just wondering if there was a way to do it without Forge first initializing the git repo + autogenerating up deployment script. Simply skipping the step in the uploaded image.

Please or to participate in this conversation.