From the course: Programming Foundations: Version Control with Git (2020)

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Working with branches

Working with branches

From the course: Programming Foundations: Version Control with Git (2020)

Start my 1-month free trial

Working with branches

- [Instructor] In previous lessons, we've talked about the advantages of using a Git branching workflow. So let's go over how to create branches with Sourcetree. We'll continue to work with the personal site project. To make a new branch, select the branch icon and give it a descriptive name. Let's say I want to make some design updates to the site. I can create a feature branch and call it redesign, or I can be even more specific and call it theme update and use it just for changes related to the visuals, like colors and fonts, but no changes to the content or functionality. The default option is to create the branch from the working copy parent, which means it'll make a copy from the master branch. You can also choose to make a branch from a specific point in the commit history by selecting specify commit. But for this demo, I'll stick with the default. Check out new branch just means it will switch to the new branch's…

Contents