Creating a release branch

Now, let's create our release branch and name it release/0.1.0:

$ git checkout dev$ git checkout -b release/0.1.0

If this was a real scenario, we'd deploy the branch onto a staging server for it to be more thoroughly tested. For now, let's assume we have found a bug: the text for facebook and twitter inside social-login.txt should be capitalized to Facebook and Twitter. So, let's make that fix and commit it directly on the release branch:

$ git checkout release/0.1.0$ echo -e "Facebook\nTwitter" > social-login.txt$ git add -A && git commit -m "Fix typo in social-login.txt"

Now, we would test the revised code again, and assuming there are no more bugs, we can merge it into master:

$ git checkout master
Switched to ...

Get Building Enterprise JavaScript Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.