Git基本命令
git clone 克隆代码
git branch 分支
git status 当前分支及其操作记录
git diff 代码更改记录
git checkout 检出|切换分支
git add 添加新建文件
git commit -am "提示信息:提交所有修改"
git push origin master|branch-new 推送远程分支
克隆源代码及新创建分支与合并
git clone http:
git branch branch-first
git checkout branch-first
git add fileName
git commit -m Message
git push origin branch-first:branch-first
git checkout master
git pull origin master
git merge branch-first
git commit -am "merge branch-first"
git push origin master
这就是基本的git使用流程,可以自己在总结,好代码需要好习惯!