Git Structure for WordPress Projects
April 9, 2015A great post about whats the best git structure for WordPress projects. I completely agree with Peter Suhm on this one.
I have ranted about the subject of repository structure before and I have strong opinions about it. In my opinion there is one – and only one – way to structure Git repositories in a WordPress context. That one way is the one-package / one-repository approach. Let me explain why.
Putting the complete WP core into your repo is something i see a lot, but it always feels wrong and bloated to me. One plugin/theme = one repo is the way to go.
Plus i learned about .gitattributes
in his post which seems to be a good way to specify which files should get bundled in the final .zip
when your project gets downloaded.