如何仅在我的当前分支上仅推动特定或其他分支的电流变化
让我们吧,我有一个回购。有单独的分支。 分支A & 分支B 。 分支A有15个提交,分支B有10个提交。现在,我正在研究分支A并进行一些更改并在本地进行。基本上,它将为A分支A提交数字16,但我想在分支B上推动这些提交。我想说我只想从分支A上推出最新的更改(仅提交第16号)。 。怎么可能?
let's asume, I have a repo. there are separate branches. branch A & branch B. branch A has 15 commits and branch B has 10 commits. now I am working on branch A and doing some changes and committing it locally. basically, it will commit number 16 for branch A, but I want to push these commits on branch B. I want to say that I want to push only the latest change(only commit no 16) on branch B from branch A. How it will possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果我正确解释您的问题,您正在寻求从特定分支机构推动更改。
无论您当前在哪个分支机构,您都应该能够执行此操作。请注意,这假设您的本地和远程分支具有相同的名称。
在您的示例中,执行
git push origan branch-b
应该做到这一点。我建议在
If I'm interpreting your question correctly, you are looking to push changes from a specific branch.
You should be able to execute this regardless of which branch you are currently on. Note that this assumes your local and remote branches have the same name.
In your example, executing
git push origin branch-B
should do the trick.I suggest reading some additional answers on this thread.