1

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?

4

1 回答 1

0

我在这里找到了一个更好、更简单的解决方案:https ://stackoverflow.com/a/19374618/1049693

于 2013-10-13T22:05:37.823 回答