Review社区PR的方式

有时候review社区改动较大的PR时,在github上看不太方便,需要把相应的pr,apply到本地,记录下常用的方式

# 添加pr仓库
git remote add ${upstream_name} https://github.com/xxx/flink.git 

# 拉取pr单个分支
git fetch ${upstream_name} ${branch_name}

# checkoutx相应的分支
git checkout -b ${branch_name} ${upstream_name}/${branch_name}

# 删除remote
git remote remove ${upstream_name}
posted @ 2022-01-09 13:46  Aitozi  阅读(183)  评论(0编辑  收藏  举报