I use one repo with develop
and release
branches for a Yeoman project.
Simplified, my directory tree looks like this:
root git directory
├── app
└── dist (the build folder)
With Grunt.js I build my app straight into dist
.
I would like to use git subtree push --prefix dist origin release
to conveniently update release
with a new build - as detailed in the Yeoman documentation.
Do I need to track, commit and push the dist
directory in the develop
branch at all times to use this method?
I would like to know as well - since on my own, I could not make the above work conveniently - would a submodule tracking the release
branch be a better solution?