2022 Developer Survey is open! Take survey.

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
0 answers
16 views

Woocommerce plugin - How to create two versions of the same plugin with slightly different implementation for different users

I am working on the development of a woocommerce plugin and this plugin is shipped to 2 different set of customers. I'd like to manage both of those versions in one git repository. But then ship to ...
user avatar
0 votes
2 answers
35 views

Is it a good idea to make Wordpress theme repository public?

I have my custom Wordpress+Woocommerce theme created that I want to show on my github page as a reference. The theme does not contain any login data. Of course it contains server-side php code that ...
user avatar
0 votes
1 answer
19 views

Provide logo in theme

I'm doing some small updates to a WordPress site which is managed as a git repository. The deployment process goes something like, commit to git, push to git repo, ssh to the instance, do a git pull. ...
user avatar
  • 101
-1 votes
2 answers
105 views

SSH git — How to pull a folder from repo, but not delete other directories & files on deployment server [closed]

I'm at a point in my git education where I've refined my .gitignore file such that when I push from my local development machine to a remote repository (which happens to be on Azure, but it could just ...
user avatar
  • 117
3 votes
1 answer
500 views

Enable automatic minor core updates when root of site is a git repository

I have a client site that's under version control using Git. The single repository is at the Wordpress root level, but it is set to ignore everything except for theme and plugin files. I did some ...
user avatar
  • 146
0 votes
1 answer
43 views

Wordpres core-update theme renames theme folder name

I've got a theme that checks for a new version on GitHub. When it finds a new version it downloads it and install it. The problem is that it installs the theme with a different folder name than ...
user avatar
  • 147
0 votes
0 answers
22 views

Plugin updated pushed with git break site

I'm having some trouble updating the plugins on a wordpress website. It's all my fault for waiting too long to update them, and now pushing the updates with git breaks the site (the development site ...
user avatar
0 votes
0 answers
26 views

Display GitLab repositories of the logged in user on a page

I am new at wordpress and i am create a website with all my details and accomplishments. I want to display all my GitLab repository names and links as a list on a page (not as a menu or widget). I ...
user avatar
0 votes
0 answers
81 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 ...
user avatar
3 votes
1 answer
98 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 ...
user avatar
2 votes
5 answers
236 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'...
user avatar
  • 23
1 vote
1 answer
336 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" ...
user avatar
1 vote
1 answer
121 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 ...
user avatar
0 votes
1 answer
358 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, ...
user avatar
2 votes
1 answer
123 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 ...
user avatar
1 vote
0 answers
209 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 ...
user avatar
  • 11
2 votes
2 answers
885 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.
user avatar
  • 31
1 vote
1 answer
338 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 ...
user avatar
  • 73
1 vote
0 answers
262 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 ...
user avatar
1 vote
1 answer
3k 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 ...
user avatar
  • 25
2 votes
0 answers
938 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 ...
user avatar
2 votes
0 answers
108 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 ...
user avatar
  • 145
0 votes
1 answer
312 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 ...
user avatar
3 votes
3 answers
78 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....
user avatar
0 votes
1 answer
5k 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 ...
user avatar
1 vote
0 answers
2k 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 ...
user avatar
4 votes
3 answers
3k 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 ...
user avatar
  • 195
0 votes
2 answers
173 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....
user avatar
  • 137
1 vote
1 answer
897 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 ...
user avatar
  • 137
2 votes
1 answer
33 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. ...
user avatar
  • 121
0 votes
4 answers
86 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 ...
user avatar
5 votes
2 answers
449 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-...
user avatar
  • 153
0 votes
1 answer
923 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 ...
user avatar
4 votes
1 answer
2k 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 ...
user avatar
10 votes
3 answers
9k 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 ...
user avatar
  • 873
23 votes
5 answers
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 ...
user avatar
1 vote
0 answers
67 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 ...
user avatar
1 vote
1 answer
135 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( '...
user avatar
  • 399
4 votes
1 answer
452 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 ...
user avatar
2 votes
4 answers
124 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 ...
user avatar
0 votes
1 answer
724 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 ...
user avatar
  • 2,987
2 votes
1 answer
146 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 ...
user avatar
  • 123
2 votes
3 answers
246 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
user avatar
0 votes
1 answer
59 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 ...
user avatar
  • 43
1 vote
0 answers
60 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 ...
user avatar
1 vote
0 answers
138 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 ...
user avatar
2 votes
0 answers
104 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 ...
user avatar
  • 43
5 votes
2 answers
486 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 ...
user avatar
6 votes
1 answer
1k 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 ...
user avatar
  • 785
0 votes
2 answers
473 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?...
user avatar
  • 141