git常用命令

git 提交代码流程:

  1. git add *
  2. git commit -m "update code"
  3. git pull origin 远程目标branch
  4. (如果有冲突,解决冲突,git commit -m "resolve conflict")
  5. git push origin 自己分支远程
  6. 在gitlab或者其他代码管理页面,操作merge

常用git命令:

  git checkout -b 创建分支

  git branch -a 查看所有分支

  git rebase 同步远程仓库所有分支  

       git remote -v 查看远程分支

原文地址:https://www.cnblogs.com/windy13/p/13171812.html