1.添加遠程主倉并更新內容
$git remote
origin https://gitee.com/linlong_job/boostkit-bigdata.git
$git remote add boostkit https://gitee.com/kunpengcompute/boostkit-bigdata.git
$git remote
boostkit https://gitee.com/kunpengcompute/boostkit-bigdata.git
origin https://gitee.com/linlong_job/boostkit-bigdata.git
#更新全部遠程倉庫的內容
$git remote update
Fetching origin
Fetching boostkit
#指定遠程倉庫更新內容
$git remote update boostkit
Fetching boostkit
2.cherry-pick操作
$git cherry-pick 9be62327b6c99c5a35baela77b12a401314d8bc3
[omnioperator-spark3.3.1-mrs 12bdbf6d] fix bug
Author: d00807371 <dengzhaochuChuawei.com>
Date: Sat Mar 9 10:31:55 2024 +0800
1 file changed, 2 insertions(+), 2 deletions(-)
#說明:merge記錄(e759ff7f6290408742ebObe4f5664cc101e8bC58)會有如下報錯
$git cherry-pick e759ff7f6290408742ebObe4f5664cc101e8bC58
error: commit e759ff/f6290408742ebObe4f5664cc101e8bc58 is a merge but no -m option was given.
fatal: cherry-pick failed