# 查看远程仓库
git remote
# 添加新的远程仓库
git remote add RemoteName url
# 获取新的远程仓库的信息
git fetch RemoteName
# 签出需要合并的分支
git checkout -b newLocalBranchName RemoteName/xxxxxbranchName
# 查看所有分支
git branch -a
# 签出要操作的分支
git checkout dev
# 分支合并
git merge newLocalBranchName
# 推送到远程仓库
git push
上一篇

2023-05-04
下一篇

2023-05-04