Skip to content

Instantly share code, notes, and snippets.

@scottymeyers
Created January 2, 2018 16:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save scottymeyers/7261de0fb613b58b34c451a856b221a7 to your computer and use it in GitHub Desktop.
Save scottymeyers/7261de0fb613b58b34c451a856b221a7 to your computer and use it in GitHub Desktop.
Setup Wordpress as GIT Submodule
git submodule add git://github.com/WordPress/WordPress.git wordpress
git commit -m 'Add WordPress submodule'
cd wordpress
git tag # list tags
git checkout 4.2.2 # checkout latest version
cd ..
git add wordpress # stage updates
git commit -m 'Checkout latest WordPress version'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment