{"id":17211,"date":"2026-05-11T14:04:12","date_gmt":"2026-05-11T08:04:12","guid":{"rendered":"https:\/\/betterdocs.co\/?post_type=docs&#038;p=17211"},"modified":"2026-05-11T14:04:18","modified_gmt":"2026-05-11T08:04:18","password":"","slug":"connect-the-github-repository-to-betterdocs","status":"publish","type":"docs","link":"https:\/\/betterdocs.co\/it\/docs\/connect-the-github-repository-to-betterdocs\/","title":{"rendered":"How to Connect the GitHub Repository to BetterDocs"},"content":{"rendered":"<p><a href=\"http:\/\/betterdocs.co\/it\/#pricing\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>BetterDocs PRO<\/strong><\/a> is introducing Git integration, a smarter way to sync your documentation instantly with your Git account. Follow the guidelines below to learn how to connect the GitHub repository to BetterDocs.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Step 1: Configure BetterDocs Settings<\/strong><\/h2>\n\n\n\n<p>First, go to BetterDocs <strong>&#039;Impostazioni&#039;<\/strong>. From there, select the <strong>\u2018Git Sync\u2019<\/strong> tab to manage the settings with your Git account. Toggle the <strong>\u2018Enable\u2019<\/strong> button to get started with syncing your GitHub or GitLab account.&nbsp;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img fetchpriority=\"high\" decoding=\"async\" width=\"2048\" height=\"1062\" src=\"https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-1.png\" alt=\"Connect the GitHub Repository\" class=\"wp-image-17212\" title=\"\" srcset=\"https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-1.png 2048w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-1-300x156.png 300w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-1-1024x531.png 1024w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-1-768x398.png 768w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-1-1536x797.png 1536w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-1-18x9.png 18w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-1-360x187.png 360w\" sizes=\"(max-width: 2048px) 100vw, 2048px\" \/><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\"><strong>Step 2: Connect Your GitHub Account<\/strong><\/h2>\n\n\n\n<p>Next, from the <strong>\u2018Repo Settings<\/strong>\u2019, you have to connect your GitHub doc repo. You can either click on <strong>\u2018Connect with GitHub\u2019<\/strong> or to add a GitLab account, go to the <strong>\u2018GitLab\u2019<\/strong> tab to connect your account with access tokens. Let\u2019s have a look at both of these processes.&nbsp;<\/p>\n\n\n\n<p><strong><em>Nota: <\/em><\/strong><em>To know the detailed process of connecting your GitLab account, <strong><a href=\"https:\/\/betterdocs.co\/it\/docs\/connect-the-gitlab-repository-to-betterdocs\/\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/betterdocs.co\/docs\/connect-the-gitlab-repository-to-betterdocs\/\" rel=\"noreferrer noopener\">check the documentation<\/a>.<\/strong><\/em>\u00a0<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Step 2.1. Connect with GitHub<\/strong><\/h3>\n\n\n\n<p>First, click on the <strong>\u2018Connect with GitHub\u2019<\/strong> button. After clicking on that, you will be asked to log in to your GitHub account. Enter your GitHub Username and Password to sign in.&nbsp;<\/p>\n\n\n\n<p>After signing in, you will find the interface to install and authorize your account. Here, you can choose the repository you want to connect with BetterDocs.&nbsp;<\/p>\n\n\n\n<p><strong><em>Nota: <\/em><\/strong><em>By allowing the repository permission, BetterDocs will only take read access to your&nbsp; meta data and read and write access to your code.<\/em><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"2048\" height=\"1059\" src=\"https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-2.png\" alt=\"Install and Authorize BetterDocs in GitHub\" class=\"wp-image-17213\" title=\"\" srcset=\"https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-2.png 2048w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-2-300x155.png 300w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-2-1024x530.png 1024w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-2-768x397.png 768w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-2-1536x794.png 1536w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-2-18x9.png 18w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-2-360x186.png 360w\" sizes=\"(max-width: 2048px) 100vw, 2048px\" \/><\/figure>\n<\/div>\n\n\n<p>Click on the <strong>\u2018Install and Authorize\u2019<\/strong> button to connect to your GitHub account with BetterDocs.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Step 3: Configure the GitHub Integration Settings<\/strong><\/h2>\n\n\n\n<p>Now, after connecting with your GitHub account, select the repository where you want to sync the documentation. After selecting it, select the specific branch and doc directory. Then, you can configure <strong>\u2018File Naming Convention\u2019<\/strong>, which means how to name Markdown files in the repository and enable or disable the <strong>\u2018Auto Sync\u2019<\/strong> option for automatically syncing changes to Git when docs are saved. Click on the <strong>\u2018Save\u2019<\/strong> button to save the settings.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"2880\" height=\"1488\" src=\"https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/4.-GitHub-New-UI-Settings.gif\" alt=\"Configure GitHub Integration Settings\" class=\"wp-image-17215\" title=\"\"><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\"><strong>Step 4: Sync the Documentation<\/strong><\/h2>\n\n\n\n<p>Go back to the documentation that you want to sync in your Git repository. There, you will find an option on the top right side of the documentation named <strong>\u2018GitHub Sync.\u2019<\/strong>&nbsp;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"1055\" src=\"https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-3.png\" alt=\"Click on GitHub Sync\" class=\"wp-image-17216\" title=\"\" srcset=\"https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-3.png 2048w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-3-300x155.png 300w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-3-1024x528.png 1024w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-3-768x396.png 768w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-3-1536x791.png 1536w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-3-18x9.png 18w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-3-360x185.png 360w\" sizes=\"(max-width: 2048px) 100vw, 2048px\" \/><\/figure>\n<\/div>\n\n\n<p>Click on the button, and then you will find the option to <strong>\u2018Push\u2019 <\/strong>the doc in your GitHub repository. Then, after successfully fetching the document, give a <strong>\u2018Summary\u2019<\/strong> for your documentation. You can also add a description if needed. Then click on the <strong>\u2018Commit &amp; Push to\u2019<\/strong> button to push the documentation on your selected branch.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2880\" height=\"1488\" src=\"https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/6.1.-Click-GitHub-Sync-New-UI.gif\" alt=\"Push document to GitHub\" class=\"wp-image-17217\" title=\"\"><\/figure>\n<\/div>\n\n\n<p>You will find more options to <strong>\u2018Pull from GitHub\u2019<\/strong> e <strong>\u2018Import MD Files\u2019<\/strong>. If someone changes the documentation in your GitHub repository, you can simply click <strong>\u2018Pull from GitHub,\u2019<\/strong> and the changes will be automatically applied to your BetterDocs documentation.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1280\" height=\"662\" src=\"https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/7.2.-Pull-from-GitHub.gif\" alt=\"Pull document from GitHub\" class=\"wp-image-17218\" title=\"\"><\/figure>\n<\/div>\n\n\n<p>Similarly, you can import all the MD files from your GitHub repository right inside your BetterDocs documentation. Click on <strong>\u2018Import MD Files\u2019 <\/strong>and select the documentation you want to import. Then click on the <strong>\u2018Import Selected\u2019<\/strong> button to import the file.\u00a0<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2880\" height=\"1488\" src=\"https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/8.1.-Import-MD-Files.gif\" alt=\"Import MD files in BetterDocs\" class=\"wp-image-17220\" title=\"\"><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\"><strong>Esito finale<\/strong><\/h2>\n\n\n\n<p>Finally, in your Git Repository, you will see that the documentation is synced with your BetterDocs knowledge base. This is how you can easily document on BetterDocs and a GitHub account.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2880\" height=\"1488\" src=\"https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/9.-Final-Outcome-of-New-UI.gif\" alt=\"Final outcome of GitHub Sync\" class=\"wp-image-17232\" title=\"\"><\/figure>\n<\/div>\n\n\n<p>If you face any difficulties, feel free to <a href=\"https:\/\/wpdeveloper.com\/support\/\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>contact our support team<\/strong><\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Step-by-step process of connecting GitHub repository with BetterDocs in the feature Git Sync. <\/p>","protected":false},"author":44,"featured_media":17221,"template":"","meta":{"_eb_attr":"","inline_featured_image":false,"_eb_data_table":"","_analytify_skip_tracking":false,"footnotes":""},"doc_category":[309],"doc_tag":[1388,1393,1392,1391],"knowledge_base":[282],"class_list":["post-17211","docs","type-docs","status-publish","has-post-thumbnail","hentry","doc_category-configurations","doc_tag-git-sync","doc_tag-github-integration","doc_tag-github-repository","doc_tag-github-sync","knowledge_base-wordpress"],"year_month":"2026-05","word_count":539,"total_views":"41","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"Maahi","author_nicename":"maahi","author_url":"https:\/\/betterdocs.co\/it\/author\/maahi\/"},"doc_category_info":[{"term_name":"Configurations","term_url":"https:\/\/betterdocs.co\/it\/docs\/shopify\/configurations\/"}],"doc_tag_info":[{"term_name":"Git Sync","term_url":"https:\/\/betterdocs.co\/it\/docs-tag\/git-sync\/"},{"term_name":"GitHub integration","term_url":"https:\/\/betterdocs.co\/it\/docs-tag\/github-integration\/"},{"term_name":"GitHub repository","term_url":"https:\/\/betterdocs.co\/it\/docs-tag\/github-repository\/"},{"term_name":"GitHub sync","term_url":"https:\/\/betterdocs.co\/it\/docs-tag\/github-sync\/"}],"knowledge_base_info":[{"term_name":"WordPress","term_url":"https:\/\/betterdocs.co\/it\/docs\/wordpress\/","term_slug":"wordpress"}],"knowledge_base_slug":["wordpress"],"_links":{"self":[{"href":"https:\/\/betterdocs.co\/it\/wp-json\/wp\/v2\/docs\/17211","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/betterdocs.co\/it\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/betterdocs.co\/it\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/betterdocs.co\/it\/wp-json\/wp\/v2\/users\/44"}],"version-history":[{"count":3,"href":"https:\/\/betterdocs.co\/it\/wp-json\/wp\/v2\/docs\/17211\/revisions"}],"predecessor-version":[{"id":17234,"href":"https:\/\/betterdocs.co\/it\/wp-json\/wp\/v2\/docs\/17211\/revisions\/17234"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/betterdocs.co\/it\/wp-json\/wp\/v2\/media\/17221"}],"wp:attachment":[{"href":"https:\/\/betterdocs.co\/it\/wp-json\/wp\/v2\/media?parent=17211"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/betterdocs.co\/it\/wp-json\/wp\/v2\/doc_category?post=17211"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/betterdocs.co\/it\/wp-json\/wp\/v2\/doc_tag?post=17211"},{"taxonomy":"knowledge_base","embeddable":true,"href":"https:\/\/betterdocs.co\/it\/wp-json\/wp\/v2\/knowledge_base?post=17211"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}