From the course: Learning Bitbucket
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Create a branch - Bitbucket Tutorial
From the course: Learning Bitbucket
Create a branch
- We've gotten some experience with Bitbucket by setting up workspaces, creating files in the web interface, and cloning repositories using the command line. Now let's move on to the next step. Working with branches. Branches are pointers to specific commits in a repository's history. Branches are used to isolate work on new features, fix bugs, or run experiments without affecting the primary code base. The superpower a branch gives us is the ability to work on the same files that others might be working on at the exact same time, all without stepping on each other's work. Overall, branches provide a way to make changes while maintaining a clean and stable code base for production deployments. We've already seen one branch, the main branch. We can visualize the main branch as a line, with each commit represented as a dot on the line. In this way, we can consider a branch to be a pointer to a specific commit in a repository's history. We can create branches from commits on the main…