Branching: branch checkout merge
Create feature branches, switch between them, merge branches back to main, and resolve simple merge conflicts.
Why Branches?
Branches let multiple features and bug fixes be developed in parallel without interfering with each other. Main (or master) stays stable while work-in-progress lives in feature branches.
Listing and Creating Branches
git branch lists branches. git branch name creates a new branch. The new branch starts from the current commit.
git branch # list all branches
git branch feature/auth # create a new branch
git branch -d feature/auth # delete merged branchAll lessons in this course
- git init add commit and status
- Branching: branch checkout merge
- Remote Repos: push pull clone
- Pull Request Workflow on GitHub