How to install a WordPress Website on Github - wordpress

Hy,
I have one question, how i can install a Wordpress Website on github and share with other contributors, and all persons works on the same project?
Regards

All the changes you made is in wordpress store in database so, But for themes and code edit
you can init it in one folder then install wordpress , push to git,
If you already have wordpress file create repo and init on this wordpress folder,

Related

Can i update wordpress version of my PHP5 customised wordpress site into latest wordpress version?

Can i update wordpress version of my PHP5 customised wordpress site into latest wordpress version? Now it is in 4.6 and i want to move it to 4.9.1. Any issues will be rised?
You can do it and mostly that will not cause any of issue. But before do WordPress update make sure you have to take backup for your databases once.
First of all take backup for database and make your full theme folder backup and store it as a zip , so if any issue will be raised then you directly unzip that as a theme and that will work fine.
If you have do your WordPress customization all in function.php file then your new WordPress will work perfect with your changes.
If your site have Woocomerce or other more useful plugin for front site then you should take backup for that also.
After WordPress update you may be find plugin update so do it one by one.

Upgrading to WooCommerce 3.1 not available?

My website is using WooCommerce 2.6.14, so I thought I should update to WooCommerce 3.1. The weird thing is that I don't see "Update now" button in the Plugins admin page:
Plugins page
And I can't manually update WooCommerce by overwriting the folder in FTP because it's not visible!
FTP
Any idea how can I update WooCommerce?
First back-up your WordPress site if you haven’t already.
Download a ZIP file of the plugin you need to upgrade.
Use FTP to delete the existing plugin directory from the wp-content/plugins/ directory on your site.
Replace the deleted directory by uploading the unzipped plugin to the wp-content/plugins/ directory leaving it in a directory that looks like (for example) wp-content/plugins/plugin-name
5.Sign in to your WordPress site. Go to the ‘Plugins’ menu and verify that the plugin you upgraded is the newest version.

Sync local and online WordPress installations

I develop WordPress themes and I use git for version control. I use a git repo for each theme. The most of the time I am fixing and developing themes so I only need to push little changes to some theme. Because of that I only have the themes synchronized but I have differents plugins and content.
Now I want to completely sync my local and online WordPress installations to make any change in local, including create the content and make plugins and core updated.
I have found a plugin that allow to sync the database and media files. But what happens with plugins and all the wordpress core files?
I can make git repo of all the wordpress install, but I don't want to push all the installation because a little change in one theme. I need to track each theme apart.
Is there a way to make a repo of all WordPress, excluding themes, and maintain the repos I already have for the themes?
Finally, my approach has been to create a git repo of all the WordPress files excluding wp-content/plugins and wp-content/themes with the .gitignore.
So then, I have a repository for plugins, a repository for each of my themes and another repository for all the other files. This plus the WP Sync DB plugin allow me to have my local and production environments completely synchronized.
I hope this help someone!

OpenShift Empty WordPress Repo

I signed up for OpenShift and created a new WordPress application. Went through the typical WP setup screens in the browser, and now have a fresh instance of WP. I need to start hacking away at WP, so I
git clone ssh://<my-app-repo-url> /path-to-my-project
in my shell, but the
/path-to-my-project/php
folder is empty!
I ssh'd into my application and the
/var/lib/openshift/<uid>/app-root/repo/php
folder contains all the WP source. Why is the clone operation not pulling down these files?
When you install WordPress using the quickstart, it downloads WordPress and installs it on your gear, not using git. Refer to the directions here (https://github.com/openshift/wordpress-example) in the readme for more information.

Unable to git pull Wordpress' folders and sub folders from OpenShift repo using Git

I created a wordpress app hosted on Openshift from the CLI. I'm on a Win7 PC.
After that I made several changes to my Wordpress site from the Wordpress Admin Dashboard. Now I want to pull the whole app to my local machine. I did a git pull which fetched the only folders and files sans the actual wordpress app. When I tried to run it using a WAMP, there's no wordpress site to be started. When I again ran
git pull
The message I get is
Already up-to-date
I'm a rookie and I want to make changes to my wordpress site locally and then push them to the server. Please help me out here.
if you are installing plugins & themes via the wordpress admin, they are not in git, they are installed in your $OPENSHIFT_DATA_DIR, and are saved there outside of git, you can see in this script where it does the symlinks into your wordpress installation: https://github.com/openshift/wordpress-example/blob/master/.openshift/action_hooks/deploy
If you want those in git also, you would need to modify that script to remove the symlinks, and then put your plugins & themes in git and do a push.

Resources