Working on project branches
You can also maintain parallel branches of your project. Each branch is a copy of your project.
Imagine that you have a production version of your project that lives on a website visited by millions of people each day. This production version will be your master branch. Now you want to add a new feature; for example, a button that changes the planets’ color from pink to purple. You don’t want to develop this feature in the production version. This can be dangerous as things might break and your millions of visitors might turn away in disgust. So, you create a copy of your project—a branch you might call the purple branch. You can now merrily develop locally, commit different versions of it, and make and fix mistakes. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access