Git TutorialLesson 13Free preview
Git Branch
This lesson is part of Git · All levels
Summary
The branch allows you to develop features in parallel without interfering with the main branch. The git branch creates and lists branches, while the git switch moves between branches. Each branch is just a pointer pointing to a commit, so making and removing the branch is very light.
Key points
- Git branch displays a list of local branches with a * on the active branch
- Git switch -c <nama> creates a new branch and moves there
- HEAD is a pointer to the active commit/branch
- Descriptive naming such as feature/add-on logins makes it easy for teams
Full lesson
Code examples and quizzes
Full lessons, code examples, and quizzes are available to subscribers. 5 questions.