git 把master的更新到其他分支

1,000 阅读1分钟

master上的新修改更新到other分支

//切换到other分支
git checkout other

//把master的更新同步到other
git merge master

//提交merge
git commit -m “merge master”

//push至仓库
git push origin other