Git Branching
Progressive Full Stack Application Development with Live Projects
In Git, a branch is a new or separate version of the main repository.
Branches allows us to work on different parts of a project without impacting the main branch.
When the work is complete, a branch can be
merged with the main project.
We can even switch between branches and work on different projects without them interfering with each other.
$ git branch
$ git branch
$ git checkout
$ git checkout -b
$ git branch -d
It’s preferred to change/switch to master branch before any branch
needs to be merged with it.
$ git merge
This will merge the specified branch with our master branch.
CodeMerit is a virtual space for coding enthusiasts, beginners, professionals for upskilling and accelerating their learning journey and acquiring real work experience.
Know More