Git Branching
Estimated time to read: 1 minute
Git branches are effectively a pointer to a snapshot of your changes. When you want to add a new feature or fix a bug—no matter how big or how small—you spawn a new branch to encapsulate your changes. This makes it harder for unstable code to get merged into the main code base, and it gives you the chance to clean up your future's history before merging it into the main branch.
Git Branch
-
List all of the branches in your repository.
-
Create a new branch
-
Delete the specified branch
-
Force delete the specified branch, even if it has unmerged changes.
-
List all remote branches.
-
List all remote branches
Git Checkout
-
Create and Switching to new branches
-
Switching branches
-
Checkout a remote branch