2023-09-01
github提pr和review pr
pr
- 先fork项目A
- 克隆到本地git clone git@xxxxx
- git remote -v
- git remote add upstream 项目A的git地址
- 将push地址设置为无效 git remote set-url --push upstream no-push
review pr
- git fetch upstream pull/pr的id/head:在本地的分支
- git fetch upstream pull/1/head:pr1