Chief Alchemist - Business Consulting For The 21st Century Via A Holistic & Intelligent Approach
Share ChiefAlchemist.com. RSS 2.0 feed for ChiefAlchemist.com. Sign up for the mailing list. Follow Chief Alchemist on Twitter. 'Like' the Chief Alchemist's page on Facebook. See what Chief Alchemist has been Q&A'ing on Quora. Chief Alchemist bookmarks & highlights on Diigo.com. Follow the Chief Alchemist on Digg.com. Chief Alchemist channel on Last.fm. Chief Alchemist on Flickr. Mark 'Chief Alchemist' Simchock on LinkedIn. Free Initial Consultation. Email Chief Alchemist. Phone Chief Alchemist.
  • Mark ‘Chief Alchemist’ Simchock
  • 'Email me.Email => ca .at. ChiefAlchemist .dot. com
  • 'Phone me.Alchemy United => 732 997-0028
  •  
  • Free initial consultation.Free => Initial Consultation
  • Please be sure to subscribe to your communication channels of choice.
  • Click To Close => The small green (consultation), red (email) or blue (phone) icons in the top upper right.
CURRENT “TOP 10” TOPICS TOOLS CLIENTS & PROJECTS SOURCES SEARCH HIDE
Business Consulting For The 21st Century Via A Holistic & Intelligent Approach

WordPress, Git, repos and symlinks

FYI => The short of it is, the client’s repo structure didn’t quite match WordPress’ expectations. Here’s a solution that allows you to leave the repo’s structure as is.

The repo was something like:

client_repo

And under that main folder was the actual wp-content folder. Link this: client_repo\wp-content.

Note: If there’s a way to work with a slice / subset of a repo, I am not yet aware of it.

The solution was to use a symlink (aka symbolic link):

http://en.wikipedia.org/wiki/Symbolic_link

Truth be told, this is mentioned, somewhat in passing, in this post:

http://c3mdigital.com/adding-git-to-your-wordpress-development-workflow

In the end, you get the traditional wp-content folder within your WP install but it maps / aliases to the real client_repo/wp-content folder (which is also within your install, although I suppose with a symlink you could put it just about anywhere.

Required.
Will not be published. Required.
Please include http://