SAGARFIVE

1. Introduction

2. Git Basics

3.  Git Terminology

4.  Git Branching

5.  Git - Github

6.  Git Add (Git staging)

7.  Git Commit

8.  Github Advanced

9.  Git Remote

4.2 Git Creating Mutli branches

  • A Git project can have more than one branch. These branches are a pointer to a snapshot of your changes.
  • When you want to add a new feature or fix a bug, you spawn a new branch to summarize your changes.
  • So, it is complex to merge the unstable code with the main code base and also facilitates you to clean up your future history before merging with the main branch.
1Creating new branchgit branch <branch-name>Ex: git branch feature-1
2Creating new branch 2git branch <branch-name>Ex: git branch feature-2
3Creating a new branch 3git branch <branch-name>Ex: git branch feature-3
4To see list of branchesgit branchgit branch