gpt4 book ai didi

git push 到现有的远程分支

转载 作者:IT王子 更新时间:2023-10-29 01:14:26 25 4
gpt4 key购买 nike

如何将更改从本地 git 分支推送到现有的非主远程分支?如果我执行“git push”,它会尝试将所有本地分支中的更改推送到它们正在跟踪的远程。

最佳答案

为此,您可以使用 refspec,如 git push documentation 中所述.例如:

git push origin local_branch_name:remote_branch_name

关于git push 到现有的远程分支,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12486653/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com