gulpやgruntでbuildされたファイルは通常gitignoreしてあるので困った 3通り方法見つけました。 自分は一番目の方法でしばらくやってみることにしました。 deploy用の一時branchを作る #!/bin/bash set -e # Create new deploy branch based on master git checkout -b deploy # gulp comands to build our site gulp build # the dist/ directory is in my .gitignore, so forcibly add it git add -f build/ git commit -m "Deploying to Heroku" # Push it up to heroku, the -f ensures that herok