有关发布源的更多信息，请参阅“关于 GitHub Pages”。
Before you configure a publishing source, make sure the branch or folder you want to use as your publishing source already exists in your repository. For example, before you can publish your project site from the
/docs folder on the
master branch of your repository, you or a collaborator must create a
/docs folder on the default
master branch of your repository.
在 GitHub Enterprise 上，导航到站点的仓库。
在“GitHub Pages”下，使用 Source（源）下拉菜单选择发布源。
Note: If your site's source files are located in the default publishing source—
master for user and organization sites or
gh-pages for project sites—but your site has not published automatically, make sure someone with admin permissions and a verified email address has pushed to the publishing source.
If you choose the
docs folder on the
master branch as your publishing source, then later remove the
/docs folder from that branch in your repository, your site won't build and you'll get a page build error message for a missing
/docs folder. 更多信息请参阅“关于 GitHub Pages 站点的 Jekyll 构建错误疑难排解”。 更多信息请参阅“关于 GitHub Pages 站点的 Jekyll 构建错误疑难排解”。