New to git and trying to learn GitFlow. With GitFlow, every so often you cut a release branch off of the develop
branch, so that you can isolate a subset of new changes and deploy them to some staging/nonprod environment. But nowhere can I actually find solid documentation on what the proper procedure is (command-wise) for cutting these release branches. Is it:
git checkout develop
git pull
git checkout -b release/1.1.3
git add .
git commit -m "Cutting release branch for v1.1.3."
git push
Or is it:
git checkout develop
git pull
git checkout -b release/1.1.3
git push origin release/1.1.3
Or is it something else? And why?!
git add .
aftergit checkout
doesn't really make any sense (because you haven't made any changes, right?). So once you get rid of thegit add
and the subsequent commit, your two procedures above are the same. – Graysgit push
orgit push origin release/1.1.3
, etc.? – Emelineemelita