git管理

git add . # 将所有修改过的工作文件提交暂存区

git commit-m[message] #提交暂存区到仓库区

git push 

http://www.ruanyifeng.com/blog/2015/12/git-cheat-sheet.html

git管理_第1张图片

分支http://www.cnblogs.com/hf8051/p/5200576.html

Git鼓励大量使用分支:

查看分支:git branch

创建分支:git branch

切换分支:git checkout

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

合并某分支到当前分支:git merge

删除分支:git branch -d

你可能感兴趣的:(git管理)