Note: the original website address is here
Basic Usage
The four commands above copy files between the working directory, the stage (also called the index), and the history (in the form of commits).
Note: the original website address is here
The four commands above copy files between the working directory, the stage (also called the index), and the history (in the form of commits).
List all local branches in the current repository:$ git branch
Create a new branch with specified name:$ git branch [branch-new]
Switch to the specified branch and updates the working directory:$ git checkout [branch-name]
Combine the specified branch to the current branch:$ git merge [branch-name]
Delete the specified branch:$ git branch -d [branch-name]