Back Git

Create a New and Checkout Git Branch

WRITTEN BY ON 04 Mar 2014
3,469 VIEWS • SHARES
0 comments

This is an one liner to create and checkout a branch

git checkout -b branch_name

The above command is equivalent to these two lines

git branch branch_name 
git checkout branch_name
Join the discussion

Comments will be moderated and rel="nofollow" will be added to all links. You can wrap your coding with [code][/code] to make use of built-in syntax highlighter.