{"id":17223,"date":"2026-05-11T14:05:15","date_gmt":"2026-05-11T08:05:15","guid":{"rendered":"https:\/\/betterdocs.co\/?post_type=docs&#038;p=17223"},"modified":"2026-05-11T14:05:21","modified_gmt":"2026-05-11T08:05:21","password":"","slug":"connect-the-gitlab-repository-to-betterdocs","status":"publish","type":"docs","link":"https:\/\/betterdocs.co\/it\/docs\/connect-the-gitlab-repository-to-betterdocs\/","title":{"rendered":"How to Connect the GitLab Repository to BetterDocs"},"content":{"rendered":"<p>Introducing Git Integration in <a href=\"http:\/\/betterdocs.co\/it\/#pricing\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>BetterDocs PRO<\/strong><\/a>, a smarter, faster way to keep your documentation synced directly with your Git account. Follow the guide below to explore how to connect the GitLab repository to BetterDocs to get started seamlessly.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>Step 1: Configure BetterDocs Settings<\/strong><\/h2>\n\n\n\n<p>To begin, navigate to BetterDocs <strong>&#039;Impostazioni&#039;<\/strong> and open the <strong>\u2018Git Sync\u2019<\/strong> tab. From there, you can configure and manage the connection with your Git account. Simply toggle the <strong>\u2018Enable\u2019<\/strong> option to start syncing your GitLab account seamlessly.&nbsp;<\/p>\n\n\n\n<p><strong><em>Nota:<\/em><\/strong><em> To connect your GitHub account, check the step-by-step process <strong><a href=\"https:\/\/betterdocs.co\/it\/docs\/connect-the-github-repository-to-betterdocs\/\" target=\"_blank\" data-type=\"link\" data-id=\"https:\/\/betterdocs.co\/docs\/connect-the-github-repository-to-betterdocs\/\" rel=\"noreferrer noopener\">in this documentation.<\/a><\/strong>&nbsp;<\/em><\/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-4.png\" alt=\"Connect the GitLab Repository\" class=\"wp-image-17224\" title=\"\" srcset=\"https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-4.png 2048w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-4-300x156.png 300w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-4-1024x531.png 1024w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-4-768x398.png 768w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-4-1536x797.png 1536w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-4-18x9.png 18w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-4-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 GitLab Account<\/strong><\/h2>\n\n\n\n<p>To connect your account with GitLab, enter your GitLab Project ID and Access Token. Create a token at <a href=\"https:\/\/gitlab.com\/-\/user_settings\/personal_access_tokens\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>GitLab Settings \u2192 Access Tokens<\/strong><\/a>. From there, copy the token ID and project ID. Then paste it in your BetterDocs settings. Click on the <strong>\u2018Connect GitLab\u2019<\/strong> button. After that, your GitLab account will be automatically connected to BetterDocs.<\/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-5.png\" alt=\"Add ID and token from GitLab\" class=\"wp-image-17225\" title=\"\" srcset=\"https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-5.png 2048w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-5-300x155.png 300w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-5-1024x530.png 1024w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-5-768x397.png 768w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-5-1536x794.png 1536w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-5-18x9.png 18w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-5-360x186.png 360w\" sizes=\"(max-width: 2048px) 100vw, 2048px\" \/><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\"><strong>Step 3: Configure the GitLab Integration Settings<\/strong><\/h2>\n\n\n\n<p>Now, after connecting with your GitLab account with Project ID and Access Token, select the repository where you want to sync the documentation. After selecting it, select the specific branch and doc directory. Next, configure the <strong>\u2018File Naming Convention<\/strong>\u2019 to define how Markdown files will be named in your repository. You can also enable or disable the <strong>\u2018Auto Sync\u2019<\/strong> option to automatically sync documentation changes with Git whenever docs are saved. Once everything is set up, click the <strong>\u2018Save\u2019<\/strong> button to apply your changes.&nbsp;<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img decoding=\"async\" width=\"2048\" height=\"1057\" src=\"https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-6.png\" alt=\"Configure the GitLab Settings\" class=\"wp-image-17226\" title=\"\" srcset=\"https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-6.png 2048w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-6-300x155.png 300w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-6-1024x529.png 1024w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-6-768x396.png 768w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-6-1536x793.png 1536w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-6-18x9.png 18w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-6-360x186.png 360w\" sizes=\"(max-width: 2048px) 100vw, 2048px\" \/><\/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>\u2018GitLab 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=\"1065\" src=\"https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-7.png\" alt=\"Sync button for GitLab\" class=\"wp-image-17227\" title=\"\" srcset=\"https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-7.png 2048w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-7-300x156.png 300w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-7-1024x533.png 1024w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-7-768x399.png 768w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-7-1536x799.png 1536w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-7-18x9.png 18w, https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/image-7-360x187.png 360w\" sizes=\"(max-width: 2048px) 100vw, 2048px\" \/><\/figure>\n<\/div>\n\n\n<p>Click the button to access the option for pushing the doc to your GitLab repository. Once the document is fetched successfully, add a <strong>\u2018Summary\u2019<\/strong> for your documentation and include a description if needed. Finally, click the <strong>\u2018Commit &amp; Push to\u2019<\/strong> button to publish the documentation to 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=\"1494\" src=\"https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/8.4.-GitLab-push.gif\" alt=\"Push documentation to GitLab\" class=\"wp-image-17228\" title=\"\"><\/figure>\n<\/div>\n\n\n<p>You will also find options to <strong>\u2018Pull from GitLab\u2019<\/strong> e <strong>\u2018Import MD Files\u2019<\/strong>. If any changes are made to the documentation in your GitLab repository, simply click <strong>\u2018Pull from GitLab<\/strong>\u2019 to automatically sync and apply those updates 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=\"2880\" height=\"1494\" src=\"https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/8.5.1.-Pull-From-GitLab.gif\" alt=\"Pull documentation from GitLab\" class=\"wp-image-17229\" title=\"\"><\/figure>\n<\/div>\n\n\n<p>Similarly, you can import all the MD files from your GitLab 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.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2880\" height=\"1494\" src=\"https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/8.5.-Import-MD-for-GitLab.gif\" alt=\"Import MD files from GitLab\" class=\"wp-image-17230\" 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 GitLab account.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"2880\" height=\"1494\" src=\"https:\/\/betterdocs.co\/wp-content\/uploads\/2026\/05\/9.1.-Final-Outcome-of-GitLab.gif\" alt=\"GitLab sync final outcome\" class=\"wp-image-17231\" 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>\n\n\n\n<p><\/p>","protected":false},"excerpt":{"rendered":"<p>Step-by-step process of connecting GitLab repository with BetterDocs in the feature Git Sync. <\/p>","protected":false},"author":44,"featured_media":17231,"template":"","meta":{"_eb_attr":"","inline_featured_image":false,"_eb_data_table":"","_analytify_skip_tracking":false,"footnotes":""},"doc_category":[309],"doc_tag":[1388,1390,1389,1387],"knowledge_base":[282],"class_list":["post-17223","docs","type-docs","status-publish","has-post-thumbnail","hentry","doc_category-configurations","doc_tag-git-sync","doc_tag-gitlab-integration","doc_tag-gitlab-repository","doc_tag-gitlab-sync","knowledge_base-wordpress"],"year_month":"2026-05","word_count":457,"total_views":"40","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":"GitLab integration","term_url":"https:\/\/betterdocs.co\/it\/docs-tag\/gitlab-integration\/"},{"term_name":"GitLab repository","term_url":"https:\/\/betterdocs.co\/it\/docs-tag\/gitlab-repository\/"},{"term_name":"GitLab sync","term_url":"https:\/\/betterdocs.co\/it\/docs-tag\/gitlab-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\/17223","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\/17223\/revisions"}],"predecessor-version":[{"id":17245,"href":"https:\/\/betterdocs.co\/it\/wp-json\/wp\/v2\/docs\/17223\/revisions\/17245"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/betterdocs.co\/it\/wp-json\/wp\/v2\/media\/17231"}],"wp:attachment":[{"href":"https:\/\/betterdocs.co\/it\/wp-json\/wp\/v2\/media?parent=17223"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/betterdocs.co\/it\/wp-json\/wp\/v2\/doc_category?post=17223"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/betterdocs.co\/it\/wp-json\/wp\/v2\/doc_tag?post=17223"},{"taxonomy":"knowledge_base","embeddable":true,"href":"https:\/\/betterdocs.co\/it\/wp-json\/wp\/v2\/knowledge_base?post=17223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}