Can I ignore build folder from master branch? - Yeoman Deployments using Git Subtree -
yeoman's deployment page, describes process of committing build folder (aka "dist") repo, pushing folder git subtree following command.
git subtree push --prefix dist origin gh-pages
i've got working fine, , able deploy build code dist folder build subtree branch (gh-pages in example above).
can .gitignore dist
folder master? if so, git subtree push --prefix dist origin gh-pages
keep working?
if not, how might avoid committing built source master branch, while keeping in git subtree deploying? (need keep in branch because use capistrano deployments, which, sort of, relies on deploying entire branch server.)
.gitignore
files not remove existing files repository, , not prevent committing files ignored. if ignore files after committed, stay in repository untouched, though changes them ignored. if want commit changes ignored file (or file committed , ignored), can use git add -f
forcibly add ignored changes.
to answer question more directly, have feeling git subtree
okay deleting files after push subtree. also, should able run git checkout gh-pages
grab gh-pages
branch updating deploy.
alternate method: page linked has link git directory deploy script may find useful.
Comments
Post a Comment