git拉取合并官方代码

git添加远程分支,拉取并合并官方代码后推送到目标分支的步骤

# 添加远程分支
call git remote add jeecg https://gitee.com/jeecg/jeecg-boot.git
# 拉取远程分支
call git fetch jeecg
# 合并远程分
call git merge jeecg/master --allow-unrelated-histories 
# 推送记录到目的分支
call git push -f origin master
CC BY-NC-SA 4.0
本站有更新,点击刷新查看最新内容 ×