WordPress, Git, and Submodule: Installing wordpress locally using submodule and deploying to production server.

LOCAL SETUP mkdir ~/local-wp && cd local-wp touch readme.md git add readme.md git commit -m ‘init commit’ touch .gitignore Add following lines to `.gitignore`, personally I prefer ignoring `wp-config.php` as it contains sensitive info and database credentials: # OSX files .DS_Store # intellij project settings .idea/ wp-config.php We are using wordpress github repo as a…