Loading Depth Study
Preparing your workspace
A Git branch is a movable reference to a line of development that allows work to happen independently.
Branches allow developers to make changes without immediately affecting another line of development. A feature branch can be created from a stable branch, developed and tested, and then merged back after review. Git merge combines histories. Branches are lightweight and are one of the main reasons Git works well for team development.
A developer can create feature/course-search from main, build the feature, test it, and merge it after code review.
git switch -c feature/course-search git add . git commit -m "Add course search" git switch main git merge feature/course-search
A feature branch is created, changes are committed, and the completed feature is merged into main.