Thursday, February 6, 2014

Git - Switched and Make a new branch at a time.

@ How to revert to a commit point on a branch.

@ Option -b is to make branch
@ dev-bug is a branch name
@ dc41eaf is SHA code
@ Like the following command
$ git checkout -b dev-bug dc41eaf

@Switched and make a new branch at a time.
$ git checkout -b newBranchName

@Make a new branch
$ git branch newBranchName

@Switched to a new branch
$ git checkout newBranchName

No comments:

Post a Comment