Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Merging the remote repository isn't necessary unless you want changes from upstream in your copy.</p> <p>Suppose you have your Wordpress locally in a folder called <code>wp</code> and it isn't already a git repo:</p> <pre><code>cd wp git init . touch .gitignore # Add required stuff to .gitignore. git add . git commit -m "Initial commit." </code></pre> <p>Now when you want to reflect these changes remotely just push to the remote of your production or staging servers.</p> <pre><code>git push staging master </code></pre> <h2>Possible Solution via git Submodules</h2> <p>Say you have your Wordpress setup on github. First clone the repo:</p> <pre><code>git clone git://github.com/Soliah/Wordpress.git cd Wordpress git checkout origin/3.2-branch </code></pre> <p>Now say you have a theme "awesomeness":</p> <pre><code>cd Wordpress git submodule add https://github.com/Soliah/awesomeness.git ./wp-content/themes/awesomeness git submodule init git submodule update </code></pre> <p>Now anytime you want to update your theme first update the theme repo:</p> <pre><code>cd awesomeness # update some stuff git add . git commit -m "Update theme." git push origin master </code></pre> <p>Back in wordpress just update the submodule and push to github.</p> <pre><code>cd Wordpress git submodule update git commit -m "Update theme submodules." git push origin master </code></pre> <p>On your other servers you can either <code>git clone git://github.com/Soliah/Wordpress.git &amp;&amp; git submodule update --init</code> or <code>git pull</code> if they're already present.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload