Home › Forums › ACF PRO › Working with git/branches/acf json › Reply To: Working with git/branches/acf json
This may not be for you. I have one site where there can be several changes going on at the same time by different developers. I also use git. To manage this I have multiple dev/staging/testing sites. A specific change is only done on one of these sites. In your case, each branch would equal another dev site, reusing dev sites for different purposes as branches are merged. There was a lot I needed to learn about .gitignore to accomplish this. Basically, in my case, the root of git is the root of the site and I ignore all of the WP files and anything else that will be updated through the normal update process while any file on the server that could might need changing is part of the repo. I needed to do this to include custom PHP files in folders off the root as well as include the theme and specific custom plugins for WP. It’s really complicated, but the only way I could figure out how to accomplish letting multiple devs work on different changes and only pushing specific changes to the live site.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
Plugin boilerplates can do some of the heavy lifting during initial development. We look at four options to speed up your plugin creation. https://t.co/ZtMsdBxAHw
— Advanced Custom Fields (@wp_acf) June 5, 2023
© 2023 Advanced Custom Fields.
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.