【发布时间】:2017-07-22 15:02:29
【问题描述】:
我在 github 上有一个存储库。我的存储库是由另一个用户分叉的。现在他提出了一个拉取请求。我想将我的一个提交推送到他的功能分支(他为此提出了 PR)。这可能吗。
这就是我所做的
git pull remote-ref-other-user feature-branch
完成此操作后,我可以提取他的提交。但是当我进行一些更改时,添加另一个提交并尝试以这种方式推送它。
git push remote-ref-other-user feature-branch
我收到此错误
error: src refspec feature-branch does not match any.
error: failed to push some refs to 'https://github.com/other-user/repo'
是否可以将我这边的提交推送到他的分支。如果是,那怎么做。
【问题讨论】:
-
您可以随时向分叉的 repo 发出 counter PR。
标签: git github push commit git-branch