java面试之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 同步远程仓库所有分支

猜你喜欢

转载自www.cnblogs.com/windy13/p/13171812.html
今日推荐