This article is the third installment in the 'Using Git' series.It assumes that you have read both theand the article on.In the world of version control systems, GIT is arguably one of the best in terms of flexbility. It's very easy to learn the syntax and to figure out how git can best serve your workflow and your environment.This tutorial will teach you how to create two branches (master and develop) and how to merge code from the development stage to production.A branch, at its core, is a unique series of code changes with a unique name.Each repository can have one or more branches.By default, the first branch is called 'master'.
Branch creates a reference in Git for the new branch and a pointer back to the parent commit so Git can keep a history of changes as you add commits to the branch. When you are working with a branch that someone else shared, Git keeps an upstream tracking relationship to associate the branch on the local repo with the corresponding branch on the remote repo.