Git way of handling floating branch like in StarTeam -
in project have folder contains lot of data needs versioned. of time don't need it, do:
$ git clone myrepo $ cd myrepo
sometimes need latest stuff data branch, in it's own folder
$ git checkout databranch -- datadir
when checkout data branch, need latest stuff. data branch should not contain versioning of own content , master branch should not contain data branch stuff default.
this sounds git-submodule, must keep contained in single repository. , i'd keep data-branch, when selected, floating on top of master starteam able (if recall correctly).
is possible in git? kind of workflow suggest alternative?
git checkout databranch -- datadir git rm -r --cached datadir
and you're done.
Comments
Post a Comment