git push a branch to remote repository

You quickly get familiar with pushing your local master branch up to your origin remote repository: You can send up a “side” branch that isn’t the master to your remote repository just as easily: Note the extra -u which appears before origin. It is short for –set-upstream. Since you’re sending your branch up for the …

why is my local wordpress redirecting to production

It’s rare to start a website from scratch. More often, a developer needs to install a local wordpress environment to work on an existing website. After setting up a virtual server on a local computer, and copying over the theme files and database, nearly everything is ready to test that the local setup works. At …

update urls in database after importing to local to solve redirection issues

Am setting up a local development environment for WordPress, using VVV vagrant. I already exported the original database from production and imported it in the local placeholder website. For single-site installs, just replace the “siteurl” value in the “wp-options” from http://www.liveproductionsite.com to http://localtestsite.test For multisite-installs, there are a few more hoops to jump through. Remember: …

Show databases on vagrant server

To show which databases exist on a vagrant virtual server, do the following steps. This supposes you already have a vagrant server up and running, for example VVV. It will list all current databases, like those of wordpress installs. If you reprovision your vagrant, you should know that it will try to recreate the placeholder …