Github pull request to private repo(来 self 自己的分支)

标签 git github

Github 非常环保,但到目前为止我发现的建议都行不通。

我正在向私有(private) Github 存储库添加一项新功能。我被指示创建一个分支并提交 pull 请求。

我在 Github 的桌面客户端添加了 repo 并创建了一个新分支,new-feature。我已经进行了所有更改,但是当我尝试将它们发布到分支时,我得到:

 Repository not found!

 'new-feature' doesn’t seem to exist at https://github.com/username/main-name.git/ anymore. You may not have access, or it may have been deleted or renamed.

我可以在浏览器中看到存储库仍在该地址,但我想我没有写入权限。

让它发挥作用的正确过程是什么?我是否应该将 repo 克隆到我自己的帐户(作为私有(private) repo )并从那里提交 pull 请求?我已经试过了,但找不到将它链接到主仓库的方法,也许我错误地克隆了它......

最佳答案

  1. 在 GitHub 上创建项目的分支。 别担心,您的工作仍然是保密的。

  2. 将您的工作推向您的分支。在那里,你有写权限。

  3. 从分支中的分支创建 pull 请求。

关于Github pull request to private repo(来 self 自己的分支),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33198030/

相关文章:

git - 防止未跟踪的文件在 Git 中被覆盖

从本地到 bitbucket/github hub 再到实时网络服务器的 Git 工作流程

go build 不会将本地更改编译到 main

git - 根据 git status 为 SublimeText TreeView 中的文件着色?

r - 模型选择错误(gamm4)疏通功能(MuMIn R包): family not recognised,模型跳过

html - 将 Google API 字体作为 HTTPS 导入仍然不适用于 GitHub 页面

git - 如何绕过 : remote: GitLab: Author <non-member-email-here> is not a member of team?

git - 无法将代码 checkin GitHub

git - 通过 Composer 从 Bitbucket 中提取我自己的私有(private)存储库

git - 团队城市 Git "Host key verification failed"