Multiple development branches can be kept in a single Git repository. 

To create a new branch, type the following command, replacing name with the name of the new branch:

git branch name

To see a list of all branches in a repository, type the following command:

git branch

The asterisk (*) next to a branch name indicates the current working branch. If you want to work on another branch, type the following command, replacing 'name' with the name of the branch:

git checkout name

Using the git commit command, you can make modifications to the branch and commit them. If you switch to a different branch, you will not see those updates.
 
Was this answer helpful? 0 Users Found This Useful (0 Votes) GIT, Versioning Control