如何在GitHub上请求Wiki页面? [英] How to pull request a wiki page on GitHub?

查看:629
本文介绍了如何在GitHub上请求Wiki页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 GitHub 上看到了一个未开放编辑的wiki页面。然后,我分出了这个项目,并在我的结局上进行了编辑,并试图做出拉取请求。事实证明, wiki 不在项目中,并且没有办法提交更改。



除电子邮件,如果我想在这种情况下建议对wiki进行更改,是否有办法继续?



在这一点上,我发现了什么<一个href =https://stackoverflow.com/questions/6941688/how-to-integrate-a-github-wiki-into-the-main-project>看起来像一个替代方案下与类似的问题标题,但我无法用它做拉请求,所以我不确定子模块是达到这个目的的好方法。我现在看到我可能以某种方式分支它......所以这是要走的路吗?

GitHub 不支持维基库的拉取请求,只有主存储库(这有点耻辱,国际海事组织,但我可以理解它)。



以下是一个有趣的方式,一个项目管理社区更新到他们的wiki,同时仍然严格控制,至于源代码: p>


我建议的工作流程是这样的:


  1. 手动创建您的Github账户上的Taffy wiki分支:


    • 在您的github账户上创建一个新的存储库。我们称之为Taffy-Wiki。

    • 将Taffy wiki repo克隆到本地计算机: git clone git@github.com:atuttle / Taffy.wiki .git

    • 删除原始的originremote并将你的github repo添加为新的origin git remote rm origin git remote add origin git@github.com:< YOUR_USERNAME> /Taffy-Wiki.git


  2. 在本地进行建议的更改,然后将它们推送到您的github帐户: git push -u origin master ('-u origin master '只需要第一次;之后只需做 git push

  3. 向官方Taffy问题跟踪器提交一张请求我审核您的更改并将它们合并。请确保包含您的回购协议的链接,并描述您所做的更改。


(From 你如何贡献Taffy文档 。)

如果是我,我会创建一个问题在主存储库(也就是你分叉的那个)中,建议对wiki进行更新。如果问题没有启用,那么电子邮件是关于我能想到的唯一其他选项。


I saw a wiki page on GitHub that isn't open for editing. Then I forked the project, edited it on "my end" and tried to do a pull request. It turns out, the wiki isn't in the project, and there isn't a way to commit changes to it.

Other than e-mailing, is there a way to proceed if I want to suggest a change on the wiki in this case?

At this point I found out what seems like an alternative under "Questions with similar titles", but I couldn't do the pull request with it yet, and so I'm not sure submodules is a good way for this purpose. I now see I could probably branch it somehow... So is this the way to go?

解决方案

GitHub doesn't support pull requests for the wiki repository, only the main repository (this is a bit of a shame, IMO, but I can understand it).

Here's an interesting way one project manages community updates to their wiki, while still keeping tight control, as for source code:

My proposed workflow is this:

  1. Manually create a fork of the Taffy wiki on your Github account:
    • Create a new repository on your github account. Let's call it "Taffy-Wiki".
    • Clone the Taffy wiki repo to your local machine somewhere: git clone git@github.com:atuttle/Taffy.wiki.git
    • Remove the original "origin" remote and add your github repo as new "origin" git remote rm origin and git remote add origin git@github.com:<YOUR_USERNAME>/Taffy-Wiki.git
  2. Make your proposed changes locally, then push them to your github account: git push -u origin master ('-u origin master' only required the first time; afterwards just do git push)
  3. Submit a ticket to the official Taffy issue tracker requesting me to review your changes and merge them in. Please be sure to include a link to your repo and describe what you've changed.
  4. Goto #2

(From How you can contribute to Taffy documentation.)

If it were me, I'd create an issue in the main repository (that is, the one you forked) suggesting an update to the wiki. If issues aren't enabled, then email's about the only other option I can think of.

这篇关于如何在GitHub上请求Wiki页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆