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
150 views

Deploying roots/bedrock to WPEngine

Overview I am to establish a robust WordPress Development Process utilizing the following tools: WPEngine roots/bedrock Github Actions The goal is to deploy the entire site, including the WordPress ...
Yaroslav Borodii's user avatar
0 votes
0 answers
53 views

How do I package and distribute my WordPress plugin via git?

I wrote a custom plugin for saving an uploaded .xlsx file to a .csv file. The code required an outside library and I used composer to install the code into my plugin's directory. So now I have this ...
StevieD's user avatar
  • 211
0 votes
0 answers
50 views

Full site editor, hard-coded IDs in query blocks, and staging/dev servers

Problem I'm using the full site editor for a new site. This site has several query blocks which show specific categories. The query block hard-codes the IDs of these categories into the template HTML ...
Darren's user avatar
  • 101
0 votes
0 answers
45 views

Is it bad practice to install WordPress by cloning from the official GitHub repo?

I haven't found any straight answers in my searches, so I am wondering if anyone could tell me if it's bad practice to clone from the official GitHub repo for WordPress installation. I'm aware that ...
whatifthis's user avatar
0 votes
0 answers
28 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 ...
Amr Algendy's user avatar
0 votes
2 answers
39 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 ...
user105342's user avatar
0 votes
1 answer
20 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. ...
steinybot's user avatar
  • 101
-1 votes
2 answers
492 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 ...
TARKUS's user avatar
  • 137
6 votes
1 answer
2k 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 ...
Mike Eng's user avatar
  • 238
0 votes
1 answer
71 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 ...
Tim's user avatar
  • 157
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 ...
Jillian Hoenig's user avatar
0 votes
0 answers
29 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 ...
Parth Kinjal Shah's user avatar
0 votes
0 answers
89 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 ...
Kristián Filo's user avatar
3 votes
1 answer
112 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 ...
Chris J Allen's user avatar
2 votes
5 answers
265 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'...
VaTo's user avatar
  • 23
1 vote
1 answer
400 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
2 answers
190 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 ...
user3183717's user avatar
0 votes
1 answer
443 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, ...
manifestor's user avatar
2 votes
1 answer
138 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 ...
dallasdawg's user avatar
1 vote
0 answers
222 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 ...
nswart's user avatar
  • 11
2 votes
2 answers
1k 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.
sethg's user avatar
  • 31
3 votes
1 answer
445 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 ...
Tyler's user avatar
  • 103
1 vote
0 answers
296 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 ...
Deepak Bansal's user avatar
1 vote
1 answer
4k 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 ...
slc's user avatar
  • 25
2 votes
0 answers
1k 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 ...
Brent Arias's user avatar
2 votes
0 answers
138 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 ...
wadge's user avatar
  • 145
0 votes
1 answer
325 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 ...
AlbertSamuel's user avatar
3 votes
3 answers
82 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....
Mark Locklear's user avatar
0 votes
1 answer
6k 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 ...
Adetona77's 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 ...
Jeff Wilkerson's 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 ...
MAX POWER's user avatar
  • 225
0 votes
2 answers
201 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....
JasCav's user avatar
  • 137
1 vote
1 answer
965 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 ...
arvil's user avatar
  • 139
2 votes
1 answer
36 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. ...
LC1983's user avatar
  • 121
0 votes
4 answers
107 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 ...
certainlyakey's user avatar
5 votes
2 answers
501 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-...
bleutner's user avatar
  • 153
0 votes
1 answer
1k 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 ...
user87064's 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 ...
mischa.mole's user avatar
12 votes
3 answers
10k 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 ...
Riccardo's user avatar
  • 931
22 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 ...
Najam-us-Saqib's user avatar
1 vote
0 answers
71 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 ...
Alana Storm's user avatar
1 vote
1 answer
140 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( '...
e4rthdog's user avatar
  • 441
4 votes
1 answer
509 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 ...
vpsnewbie's user avatar
2 votes
4 answers
137 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 ...
Sebastian Gärtner's user avatar
0 votes
1 answer
796 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 ...
henrywright's user avatar
  • 3,027
2 votes
1 answer
150 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 ...
oneloop's user avatar
  • 123
2 votes
3 answers
338 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
Marco Menardi's user avatar
0 votes
1 answer
60 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 ...
WPDEVE's 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 ...
T. Thomas's user avatar
1 vote
0 answers
140 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 ...
Lars Holdgaard's user avatar