{"id":13452665,"url":"https://github.com/gotgit/gotgithub","last_synced_at":"2025-05-16T04:03:15.112Z","repository":{"id":41183376,"uuid":"2268458","full_name":"gotgit/gotgithub","owner":"gotgit","description":"GotGitHub: an open source E-book about GitHub in Chinese","archived":false,"fork":false,"pushed_at":"2016-09-01T14:52:14.000Z","size":45485,"stargazers_count":1491,"open_issues_count":8,"forks_count":512,"subscribers_count":222,"default_branch":"master","last_synced_at":"2025-04-08T14:06:22.497Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://gotgit.github.com/gotgithub/","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gotgit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2011-08-25T14:42:57.000Z","updated_at":"2025-03-05T08:46:39.000Z","dependencies_parsed_at":"2022-08-10T01:43:02.388Z","dependency_job_id":null,"html_url":"https://github.com/gotgit/gotgithub","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gotgit%2Fgotgithub","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gotgit%2Fgotgithub/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gotgit%2Fgotgithub/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gotgit%2Fgotgithub/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gotgit","download_url":"https://codeload.github.com/gotgit/gotgithub/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254464891,"owners_count":22075570,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T08:00:19.727Z","updated_at":"2025-05-16T04:03:14.784Z","avatar_url":"https://github.com/gotgit.png","language":"CSS","funding_links":[],"categories":["CSS","Python","其他"],"sub_categories":["网络服务_其他"],"readme":"这是一本关于GitHub的书，在线阅读请访问： \u003chttp://www.worldhello.net/gotgithub\u003e 。\n\n动笔写GitHub不是因为我对其了解，恰恰是对其太不了解。在我写的 [《Git权威指南》][gotgit] 一书中，涉及到GitHub的只有区区三页纸，这显然回答不了读者对于GitHub的诸多疑问。\n\n这本书采用Creative Commons协议发布，并托管在GitHub上，意味着您可以免费阅读并可以用GitHub特有的方式参与本书的维护。\n\n## 如何离线阅读\n\n项目 [gotgit/gotgithub](https://github.com/gotgit/gotgithub) 的版本库中的 ``gh-pages`` 分支保存着本书编译后的页面，意味着您只要下载版本库并检出 ``gh-pages`` 分支即可在本地浏览。\n\n* 克隆版本库。\n\n        $ git clone git://github.com/gotgit/gotgithub.git\n\n* 检出 ``gh-pages`` 分支。\n\n        $ cd gotgithub\n        $ git checkout gh-pages\n\n* 用浏览器打开 ``index.html`` 即可离线阅读。\n\n因分支 ``gh-pages`` 的提交历史可能会周期性删除或压缩合并，为避免执行 ``git pull`` 更新分支时造成困惑，请对本地版本库进行如下设置。\n\n    $ git config --add remote.origin.fetch +refs/heads/gh-pages:refs/heads/gh-pages\n\n## 如何编译\n\n### 预备\n\n* Python, docutils\n\n    本书使用 [reStructuredText](http://docutils.sourceforge.net/rst.html) 格式撰写，格式解析依赖 Python 和 docutils 包。\n\n* Sphinx\n\n    用 [Sphinx](http://sphinx.pocoo.org/) 工具进行编译。编译前先确认已经安装 Python、docutils 及 sphinx。\n\n* ImageMagick 及 Inkscape\n\n    本书图片矢量图采用 [Inkscape](http://inkscape.org/) 绘制，位图处理采用 [GIMP](http://www.gimp.org/) 。上述格式图片在网页显示需要格式转换，格式转换需用到 ImageMagick 和 Inkscape。\n\n* Git\n\n    不解释。\n\n### 克隆版本库（本书书稿及图片）\n\n本书用两个版本库维护：\n\n* 书稿版本库：\n\n    https://github.com/gotgit/gotgithub/\n\n* 图片版本库：\n\n    https://github.com/gotgit/gotgithub-graphics/\n\n\n本书的图片版本库以子模组形式关联到书稿版本库，运行下面命令执行克隆：\n\n* 若尚未克隆书稿版本库，先克隆书稿版本库。\n\n        $ git clone git://github.com/gotgit/gotgithub.git\n        $ cd gotgithub\n\n* 默认检出 ``master`` 分支。如果当前非 ``master`` 分支，执行下面命令检出分支。\n\n        $ git checkout master\n\n* 通过子模组更新命令克隆子模组版本库（即保存图片的版本库）并检出。\n\n        $ git submodule init\n        $ git submodule update\n\n### 编译书稿\n\n确保安装了 Sphinx、ImageMagick、Inkscape。编译本书使用命令：\n\n    $ make html\n\n编译后的网页位于 ``_build/html`` 目录下。\n\n更多的格式输出参见下面的命令输出：\n\n    $ make\n\n## 如何贡献\n\n请采用GitHub方式贡献。\n\n* 创建派生项目。即 Fork。\n* 修改您觉得不满意的地方。修改后推送到您创建的分支版本库中。\n* 通过 GitHub 向我发送 Pull Request。\n\n[gotgit]: http://www.worldhello.net/gotgit/ \"Got Git\"\n\n-- 蒋鑫, \u003chttp://weibo.com/gotgit/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgotgit%2Fgotgithub","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgotgit%2Fgotgithub","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgotgit%2Fgotgithub/lists"}