Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Git is a popular, open-source distributed version control system (DVCS). It can be used to track and revert changes to a code base like a theme or plugin.

0
votes
0answers
9 views

How to use Git for the full Wordpress development process? [closed]

I'm trying to figure out how to use Git for the full WP development process. What I mean is that when developing a theme, it is pretty easy to integrate Git into the process, because you are mostly ...
1
vote
1answer
23 views

In a continuous integration environment how do you implement the database entries for plugins and themes

I'm setting up a wordpress continuous integration environment - git->composer->bitbucket-AWS codepipeline, etc. I have yet to figure out how I automate, for the development team, the setup of the ...
1
vote
0answers
28 views

How do I configure wordpress structure for development using git and composer

I've been developing in other languages and web frameworks and I'm now starting with a Wordpress project. I'm used to using git and a package manager, but Wordpress development poses some unique ...
0
votes
2answers
50 views

Different color admin bars for dev, staging and production

I'd like to get it so that all of my sites have a different color admin bar. Dev Staging and Production. I use Git to push my code. Any help would be appreciated.
1
vote
0answers
26 views

How do i define the location of a git push to WP Engine

Ive been using Gits version control system for local theme development on a Wordpress site. I decided to take advantage of WPEngine's git capabilities which has caused more frustration than not. I ...
0
votes
0answers
55 views

Gutenberg: move block plugin between Wordpress sites?

I created a Gutenberg block plugin on one computer in a local site using create-guten-block. It works fine. I'm trying to copy/move it to a different Wordpress install on another computer, and no ...
1
vote
0answers
52 views

Preload Cache for thousands of posts may be on non-production environment

I have a setup of three wordpress environments: Local: My Development machine (using docker) Staging: An AWS Free Tier EC2 machine Production: An AWS Free Tier EC2 machine I use git/git-hooks to ...
0
votes
1answer
46 views

Wordpress updates and Git

How to handle wordpress core and plugin updates when using git? I need to update my core and plugins. I have site on my localhost and live site on server. If I update localy and then commit+push ...
0
votes
0answers
33 views

Point git local repo to wordpress MAMP server hosted locally, full functionality, manually exclude sensitive files

i have a wordpress instance running locally and hosted on a MAMP Server (https://www.mamp.info/en/.) I am working with a previously developed custom theme that I would like to modify to my liking. ...
2
votes
0answers
291 views

Deploy WordPress From Local Docker to Hosting Provider

I've seen articles that teach how to migrate WordPress into Docker containers (see also here). I want to do the opposite. I am already running WordPress locally via Docker on my Windows 10 laptop. I ...
1
vote
0answers
49 views

Trigger Plugin database update after git pull

I have a couple of WordPress websites that I'm maintaining. The websites are on various git repositories (one for each site) with individual remotes. Currently when there is a plugin update ...
0
votes
1answer
132 views

What's is the best stack for cPanel continuous deployment?

My current environment involving: Gulp (task automation) Sass Bitbucket (for version control) But for deployment, I always manually override the files through FTP. And re-import the database. The ...
2
votes
3answers
44 views

GIT and Development URL's point to production

I am experimenting with GIT for version control. I have a production environment that I created a repo for HERE, then did a git clone locally. I created/modified the wp-config to work with my local DB....
0
votes
1answer
915 views

Tortoise SVN showing 'Access to '/!svn/me'' forbidden error.

I recently want to commit a change to my WordPress plugin repo but it has been showing 'Access to '/!svn/me' forbidden' error whenever I wanted to commit any changes. Some articles have adviced me to ...
1
vote
0answers
265 views

Wordpress Core files not being ignored by Git

I have updated Wordpress, and now BitBucket is asking me to commit the updates. According to my .gitignore file, everything should be ignored except my theme folder and some custom plugins. I am ...
3
votes
3answers
926 views

Syncing local content with development / staging sites

I come from a Laravel background which means I am used to using database migrations and seedings to keep content on dev / staging sites in sync with my local environment. I'm starting my first ...
0
votes
2answers
44 views

How to source control manage site images

While I'm not new to development, I am fairly new to WordPress. As I was reading up on how to best manage a WordPress site in source control, I found repeated advice to not check in wp-content/uploads....
1
vote
1answer
481 views

best practice on pushing staging development (database/uploads) to the live server

so I have the following setup: my local wordpress copy has git repository I create changes in my local wordpress copy I make git commits on my live server I just issue git pull from my git repo My ...
2
votes
1answer
27 views

Version control for both Vagrant config and themes being developed [closed]

I have set up a local Wordpress development environment using Chassis (based on Vagrant), this needed a bit of tweaking to get it how I like, so I feel like I should have this under version control. ...
0
votes
3answers
54 views

Environment independent way to link to certain pages on frontend

On the site I'm working now on there's a number of links hardcoded into templates, such as Privacy and cookies Registration policy Search help and so on. The pages that are linked to these don't ...
6
votes
2answers
211 views

Git vs Child Theme

I just started off building a new site by customizing an existing theme. Now I'm wondering whether there is any advantage of using a child theme instead of a plain git to make my changes upstream-...
0
votes
1answer
347 views

Git ignore everything except custom theme directory

I only just started trying to use GitHub with WordPress, so I'm completely new to everything git. My problem is simple: I want to setup my .gitignore so git ignores absolutely everything except my ...
3
votes
1answer
689 views

git and local wordpress: how to handle wordpress updates?

I see that Git and Wordpress are often discussed here, but I didn't find any answer to my specific question, so I'll open a new one. Just to get a little familiar with git, I want to use it for my ...
-1
votes
2answers
2k views

Wordpress and Git - What folders should I track?

I am configuring Git along with my WP development environment, and I was wondering what should be tracked and what should be ignored. If it makes sense to track plugins and for WP core. Create one ...
20
votes
5answers
3k views

Wordpress with Git

I am asking this question because I searched on internet but cannot find right solution. Actually I want a solution in which multiple developers can work on single wordpress project without creating ...
1
vote
0answers
58 views

Git Hosting for WordPress SVN Plugin Repository [closed]

I'm setting up my first WordPress plugin on the WordPress.org Plugin Site. Behind the scenes, developers add plugins to this site via an SVN repository. Is the any tooling (supported by Automattic ...
2
votes
1answer
66 views

Add latest commit info on login footer using login_footer hook

I am using login_footer hook to display some info below the login form. I need to display there info from the last commit of my plugin. Hook definition: $this->loader->add_action( '...
4
votes
1answer
286 views

WordPress master + child themes + Git workflow

I've been trying to work out the best solution to develop several WordPress sites using the following, but can't seem to decide what the best workflow would be. I got a master site - WordPress A. I ...
2
votes
4answers
85 views

Deploy pre-configured database

I would like to version control my WP sites with git. A big struggle I have with this is: how do you version control options/plugin settings in the database. I would like to don't touch the dashboard ...
0
votes
1answer
164 views

How to rename the wp-config.php file once under version control?

git clone git://develop.git.wordpress.org/ develop After cloning the core development repository with Git, considering the files and folders are under version control, how can the config files be ...
2
votes
1answer
122 views

Multiple copies of the same website: how to organize code/architecture?

I have one wordpress website and now I want to have several similar websites but which might be slightly different in small ways. I have no clue how to manage this in a way that is scalable. Right ...
2
votes
3answers
62 views

Collaboratively develop a WordPress site

I'm going to develop a website using Wordpress with a colleague. How can we manage it so that we can develop it together at the same time? I heard git is not right for Wordpress
0
votes
1answer
54 views

Questions about Git and WordPress [duplicate]

I am gradually getting the hang of using Git with WordPress but I have a question that's hopefully a simple answer. I have set up my local environment which I am happy with and using BitBucket as a ...
1
vote
0answers
54 views

Underscore Based Theme File Permissions in Git

I'm using underscores to develop my theme. For some reason git is saying that my file permissions are being changed from 10644 to 10744. I can override this in git's settings this but is it safe for ...
1
vote
0answers
122 views

How to run subversion and staging environments when running Wordpress

I come from a .NET world with custom solutions, where I am used to multiple staging environments and subversion for everything. I've been googling a lot, and have some questions on how handle highend ...
1
vote
0answers
98 views

Version control using GIT [duplicate]

I am a Wordpress developer and currently I don't use version control but do keep regular backups before and after altering files of both the database and file system. I am seriously considering ...
5
votes
2answers
198 views

Git Deploying - Disabling plugin/theme installation/update on remote?

Is there any way to disable the installation/updating of plugins in Wordpress? I am deploying by Github, and therefore changes on server, does not replicate on my development environment. I need to ...
5
votes
1answer
682 views

How can I sync WordPress plugin settings between environments?

I currently: Have identical environments for development (vagrant) and production (elastic beanstalk). Use git push to deploy code from the development to the production environment. Create posts and ...
0
votes
2answers
374 views

How to use wordpress with Git?

Hi guys wonder if there is something like a guide to use git to manage WP projects. I have always been a cowboy coder, and I need to make this shift to Git to become more standarized...how can I begin?...
0
votes
0answers
79 views

version control for wordpress? (wordpress folder and database at same time)

I am familiar with version control to some extent. I have been using git and github for school purposes. Now when I use wordpress it makes sense that I can use git when developing on my local ...
0
votes
1answer
48 views

Manually updating plugins via FTP or SCM

WordPress allows you to update plugins from the Dashboard with one click. When doing these plugin updates via the dashboard, WordPress says it performs the following steps: De-activate the old plugin ...
0
votes
0answers
235 views

Could not find wp-load.php issue

I am setting up a Wordpress site into a Git repository, and as a result have moved the wp-content directory outsite of the Wordpress core directory (which is permitted as per http://codex.wordpress....
1
vote
1answer
223 views

Wordpress with Git deployment issues

I'm new to wordpress, coming from the python/django world where there are pretty established standards for development workflows and site deployment, so I'm trying to find some guidance on how to ...
0
votes
1answer
175 views

theme continuous deployment from bitbucket to windows azure

I need to set up continuous deployment of a wordpress theme controlled via bitbucket to a Windows Azure hosted wordpress install. One of the sites I run has had a external agency develop a theme that ...
1
vote
1answer
658 views

How to upload/update theme from local - bitbucket - shared hosting?

I am having tough time to figure out the best most appropriate way to maintain and update my custom theme for wordpress. I have setup local server (wamp) with wordrpess where I mainly develop my ...
0
votes
2answers
297 views

Sync Local site and Distant site

I want to manage my WP site in local, then sync it to my git, and then automatically deploy it. In fact, I already have my site in production, and trying to make it work in local. The fact is I can ...
1
vote
1answer
198 views

Permissions in a Local Dev Environment (OS X)

I wanted to enable WordPress auto-updates to work without FTP, so I added: define('FS_METHOD', 'direct'); to my wp-config.php. So in order to grant write privileges to WordPress's auto-updater, I ran ...
3
votes
0answers
166 views

Git Workflow for Large, Live Site?

The Wordpress site I am working on has thousands of posts, is updated hourly, and has dozens of plugins and hacks to get it to work in the way it does. Can someone explain a git workflow that would ...
1
vote
1answer
2k views

How to get the SQL of the changes made to the database from an update or upgrade?

When I update/upgrade a plugin, theme, or even the core of WordPress, it has an impact in the database, it changes many things. How do I keep track of it? The problem is that I have a repository, all ...
0
votes
0answers
640 views

Revision History for Entire Wordpress Site

I am learning wordpress and am working on a wordpress site where I would like to have a revision history for every single change I make. I understand you can see the revision history for pages and ...