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?

pilau
  • 6,635
  • 4
  • 56
  • 69

1 Answers1

0

I have found a much better and easier solution here: https://stackoverflow.com/a/19374618/1049693

Community
  • 1
  • 1
pilau
  • 6,635
  • 4
  • 56
  • 69