The Stack Overflow podcast is back! Listen to an interview with our new CEO.

Questions tagged [git]

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.

Filter by
Sorted by
Tagged with
0
votes
0answers
27 views

Is there an actual way to synchronize 'production' and 'develop' WordPress databases?

I work with WordPress and I work with git. My code is versioned and I am happy with the workflow. What bugs me is database synchronization. I need to work with cloned database on my local ...
0
votes
0answers
10 views

Git post-receive hook overwriting wp-config

I'm new to thi workflow, so excuse this if it's a dumb question. I set up a post-receive hook for my wordpress website. It's a great way to make deployments - although it overwrites the wp-config.php ...
0
votes
0answers
11 views

How do I pull my live site to my local environment to set it up with Git?

This is not a duplicate of any current similar questions. I should know, I've read most of them. See below for why. I must have read from top-to-bottom more than twenty articles about Git and ...
0
votes
0answers
7 views

WordPress Deployment of new data

We have a WordPress site and we are looking for a way to port data updates from the staging environment to the live one. Say for example, we update the content on a page and we prepare it all on our ...
3
votes
1answer
55 views

WordPress Health Tool reporting version control as a critical issue

I use git to deploy my production site, and as a result, the sites Health tool is reporting a critical issue due to the auto-updates not working when a site is under version control. To be honest, it ...
2
votes
5answers
183 views

What is the usual process of saving changes made at the CMS level into source control?

I have a DEV environment setup with wordpress installed, where I have a wordpress developer working every day. I don't feel comfortable every time he changes something in the environment because there'...
0
votes
1answer
78 views

When I try to install VersionPress, it tells me, “The package could not be installed. No valid plugins were found.”

I'm trying VersionPress for the first time. I downloaded the project from the VersionPress GitHub page, then went to Plugins>Add New in my dashboard and uploaded the zip file "versionpress-master.zip" ...
1
vote
1answer
40 views

How should I be handling my theme version numbering?

Let's say I have a custom-coded theme, and here's the style.css: /* Theme Name: My Theme Theme URI: http://someurl.com Author: Me Author URI: http://wordpress.org/ Description: Some description ...
0
votes
1answer
72 views

How to update WordPress plugins properly using git?

I just updated some plugins (woocommerce, polylang) of a local copy of a running wordpress website. As I'm using git I wanted to commit the changes and sync with the live-host. But the problem is, ...
2
votes
1answer
61 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
62 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 ...
1
vote
2answers
206 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
92 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 ...
1
vote
0answers
142 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
703 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 ...
2
votes
0answers
458 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 ...
2
votes
0answers
75 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
192 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
56 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
2k 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
597 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
1k 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
66 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
646 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
30 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
4answers
63 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 ...
5
votes
2answers
290 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
516 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 ...
4
votes
1answer
1k 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 ...
2
votes
2answers
4k 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 ...
21
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
63 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 ...
1
vote
1answer
85 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
322 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
95 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
243 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
129 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
64 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
57 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
56 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
133 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 ...
2
votes
0answers
99 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
229 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 ...
6
votes
1answer
872 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
387 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
82 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
259 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
235 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
176 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 ...