git status

git add .

git commit -m "注释"

git stash # 每次 push 前

git pull --rebase

// 如果有冲突,解决冲突
git rebase --continue

git push origin HEAD:refs/for/master # gerrit review

git pull

git stash pop

//---------------------------------------------------------

另外一套逻辑

git stash

git pull --rebase

git stash pop

git add

git commit

git push

//如果有冲突在push之前一定要解决冲突
git push scm dev:dev //把 本地分支dev push到远程scm仓库的dev分支上

另外如果不太了解rebase操作可以看这边博文
https://www.jianshu.com/p/dc367c8dca8e

附上一张网友总结的基础操作图表

Git日常操作指南

 

 

相关文章:

  • 2021-11-27
  • 2022-12-23
  • 2021-07-27
  • 2022-12-23
  • 2021-07-26
  • 2021-08-22
  • 2021-12-04
猜你喜欢
  • 2022-12-23
  • 2022-01-20
  • 2021-09-29
  • 2022-02-03
相关资源
相似解决方案