You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git branch is a very useful way when we work with collaboration. We keep a remote repository. We fork and clone the repository. We already have a branch named master. We should create separate branch to work on a separate feature and then finally integrate the branch with the master branch.
To create a branch and checkout to it-
gitcheckout-b<branch_name>
To checkout (switch) to any branch-
gitcheckout<branch_name>
To see all the branches-
gitbranch
To delete a branch locally which is merged with the remote branch