推送到 GitHub 上的 fork pull request 分支——我这样做对吗?
我想问一件我知道怎么做的事情,但我不太确定是否有更直接的方法。
假设我想和@andy合作提交一个 pull request ,我的流程大概是这样的……
首先我添加了Andy的仓库……
git remote add andy https://github.com/Zhao-Andy/dev.to
然后我像这样推送到他们的代码库……
git push andy my-branch-name:his-branch-name
虽然方法很简单,但需要我添加他的仓库,复制粘贴他的分支名称,感觉不够优雅。
还有其他方法吗?还是只能这样做?
文章来源:https://dev.to/ben/push-to-a-forked-pull-request-branch-on-github-am-i-doing-this-right-3i0m