git分支提交,提PR,设置多人review

远程分支xxx,临时分支tmp_xxx

git checkout -b tmp_xxx   #创建并进入临时分支

git pull origin xxx      #更新本地code

git add .          

 git commit -m "test pr"

git push --set-upstream origin tmp_xxx       #github上现在能看到这个临时分支

$ git push --set-upstream origin tmp_xxx
Enumerating objects: 13, done.
Counting objects: 100% (13/13), done.
Delta compression using up to 16 threads
Compressing objects: 100% (7/7), done.
Writing objects: 100% (7/7), 551 bytes | 183.00 KiB/s, done.
Total 7 (delta 6), reused 0 (delta 0), pack-reused 0 (from 0)
remote: Resolving deltas: 100% (6/6), completed with 6 local objects.
remote:
remote: Create a pull request for 'tmp_xxx' on GitHub by visiting:
remote:      https://github.com/xxx/pull/new/tmp_xxx
remote:

进入这个link  https://github.com/xxx/pull/new/tmp_xxx 提PR

 

设置多人review

 save change即可

 

posted @ 2025-01-24 16:38  我的腹肌不见了  阅读(56)  评论(0)    收藏  举报