第一步: 查看状态  git status

第二步: 全部添加  git add --all    添加更新文件  git add -u

第三步: 再次查看状态  git status

第四步: 提交      git commit -m '备注'

第五步: 拉去版本库代码  git pull  查看状态  git status

第六步: 推送           git push (git push origin 本地分支:远程分支)

分支

查看分支:git branch

创建分支:git branch <name>

切换分支:git checkout <name>

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

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

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


解决冲突
 
  第一种:找到源文件,带符号的代码二者选其一,然后删掉,然后按上边的步骤走。

  debug文件冲突

  git checkout --theirs  文件绝对路径 ,然后按步骤走。

posted on 2016-04-16 08:37  XXXX_易夫人  阅读(5153)  评论(0编辑  收藏  举报