– git push a single commit to specific one remote branch
– 推送具体提交到远端具体分支
git push 《remote name》 《commit hash》:《remote branch name》
remote name --> 一般是origin
git log --> 查询具体提交的hash值
remote branch name --> 你想推送到的远端分支
例子:
git push origin 1cc13b67c77f04b39081b2002343f235a75015fe:master
使用Git推送特定提交到远程分支
本文介绍了如何使用Git命令将一个特定的提交推送到远程仓库的指定分支。通过运行`git push <remotename> <commithash>:<remotebranchname>`,例如`git push origin 1cc13b67c77f04b39081b2002343f235a75015fe:master`,你可以将commit 1cc13b6推送到远程的master分支。确保先用`git log`找到要推送的提交哈希。
1326

被折叠的 条评论
为什么被折叠?



