git 常用命令

查看状态

$ git status

提交命令加注释:

$ git add

提交命令加注释:

$ git commit -m "branch test"

=====分支========

查看分支:git branch

创建分支:git branch <name>

切换分支:git checkout <name>

创建+切换分支:git checkout -b <name>

合并某分支到当前分支:git merge <name>

删除分支:git branch -d <name>

原文地址:https://www.cnblogs.com/sun-rain/p/5091784.html