拷贝项目:
git clone <仓库地址>
创建分支:
git branch <name>
创建并进入分支:
git checkout -b <name>
切换分支:
git checkout <name>
查看分支:
git branch --list
查看分支(包括远程分支):
git branch -a
查看状态:
git status
添加所有文件:
git add .
提交:
git commit -m '当前提交的描述'
拉取:
git pull
推送:
git push
合并其他分支到到当前分支:
git merge --on-ff "描述" <其他分支名>
//完成后 还要push才能提交到服务器