Want to have 2 branches in a repo, with 1 branch setup to generate files, but then have those generated files only committed to the other branch
So lets say the branches are devel and release
I want to run npm run build whilst on the devel branch
It outputs to a folder /build/ which is ignored by .gitignore on the devel branch
Then I want it to switch to the release branch, which already has a /bulid/ folder
And commit any changes under that folder to the release branch
Its seeming like
git checkout releaseis not the command I want... But figuring out git documentation blah...