With Git feature branch workflow, when do you update the master branch?
I'm fairly new to git and Jenkins. We want to use Jenkins and follow the feature-branch-workflow concept , which I believe is similar to the GitHub flow . I'm aware that the master branch should always be what's currently deployed in production, but then when should the master branch be updated? It seems like there are two choices: BEFORE deploying to production: A pull request gets approved and the successful merge with master triggers the build, deployment to a staging environment, QA testing, and then someone pushes a button to deploy to production AFTER deploying to production: Something