切换分支:
git checkout name
撤销修改:
git checkout -- file
删除文件:
git rm file
查看状态:
git status
添加记录:
git add file 或 git add .
添加描述:
git commit -m "description goes here"
同步数据:
git pull
提交数据:
git push origin name
分支操作
查看分支:
git branch
创建分支:
git branch name
切换分支:
git checkout name
创建+切换分支:
git checkout -b name
合并某分支到当前分支:
git merge name
删除分支:
git branch -d name
删除远程分支:
git push origin :name