{"id":15804,"date":"2021-09-16T14:35:00","date_gmt":"2021-09-16T14:35:00","guid":{"rendered":"https:\/\/www.hostinger.com\/tutorials\/?p=15804"},"modified":"2025-04-28T07:57:29","modified_gmt":"2025-04-28T07:57:29","slug":"how-to-rename-a-git-branch","status":"publish","type":"post","link":"\/tutorials\/how-to-rename-a-git-branch","title":{"rendered":"Git rename branch \u2013  learn how to rename a local and remote Git branch"},"content":{"rendered":"<p>Git is a <strong>Version Control System (VCS)<\/strong> used by developers to facilitate collaboration. It is useful for coordinating work and tracking source code changes during the software development process.<\/p><p>When working in Git, developers utilize Git branches to add new features or repair bugs. A branch lets them make changes without affecting the original code. When a new branch is proven to work correctly, developers can merge it with the master branch.<\/p><p>This article will briefly explain what Git repositories and Git branches are. It will also teach you how to rename local and remote Git branches in case you misname one or want your project to be better organized. We&rsquo;ll also mention some helpful commands.<\/p><p class=\"has-text-align-center\"><a href=\"https:\/\/assets.hostinger.com\/content\/tutorials\/pdf\/Git-Cheat-Sheet-EN.pdf\" target=\"_blank\" rel=\"noopener\">Download complete GIT cheat sheet<\/a><\/p><p>\n\n\n\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-what-is-a-git-repository\">What Is a Git Repository?<\/h2><p>Git is a <strong>Distributed Version Control System<\/strong> <strong>(DVCS)<\/strong> that provides all team members with access to the final version of a project. Git is designed with performance, security, and flexibility in mind to make project management easier.<\/p><p>When learning <a href=\"\/tutorials\/git-tutorial\">Git basics<\/a>, you&rsquo;ll run across the term <strong>repository<\/strong>. It acts like a folder for your project and contains all of its files as well as their revision history. Repositories can be private or public and can be shared with other people.<\/p><p>When you create a Git repository, a <strong>.git\/<\/strong> directory appears in the root of the project folder. Here, Git tracks changes of project files, stores objects, <a href=\"https:\/\/git-scm.com\/book\/en\/v2\/Git-Internals-Git-References\" target=\"_blank\" rel=\"noopener\">refs<\/a>, and additional repository management information.<\/p><p>Be careful not to delete the <strong>.git\/ <\/strong>folder on accident because doing so will result in the loss of your project&rsquo;s history.<\/p><p>We recommend using <a href=\"\/tutorials\/what-is-github\">GitHub<\/a> as the centralized location for your repositories as its features facilitate collaboration and let users manage code more efficiently.<\/p><h2 class=\"wp-block-heading\" id=\"h-what-are-git-branches\">What Are Git Branches?<\/h2><p>Git branches are isolated lines of your project&rsquo;s development. They provide a way to work alongside your master branch, keeping it clear of clutter or any code that&rsquo;s not yet finished.<\/p><p>A branch acts as a pointer to a <a href=\"https:\/\/git-scm.com\/docs\/git-commit\" target=\"_blank\" rel=\"noopener\">commit<\/a> &ndash; a snapshot of the changes you&rsquo;ve made or wish to make. It is useful when you want to add additional features or fix a bug. It&rsquo;s possible to create, delete, and list branches.<\/p><p>Branches also prevent unstable code from being merged with the master branch of a project. <\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-rename-a-local-git-branch\">How to Rename a Local Git Branch?<\/h2><p>Before we begin, make sure you&rsquo;ve selected the branch you want to rename. Run this command to do so:<\/p><p><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">git checkout old-name<\/code><\/p><p>Replace <code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">old-name<\/code> with the name of the appropriate branch.<\/p><p>If you want to see all of your local branches, input the following command:<\/p><p><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">git branch --list<\/code><\/p><p>When you&rsquo;ve selected the right branch, follow these steps:<\/p><ol class=\"wp-block-list\">\n<li>Using the <strong>Git branch<\/strong> command, add an <strong>-m<\/strong> option to your line:<\/li>\n<\/ol><p><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">git branch -m new-name<\/code><\/p><ol class=\"wp-block-list\" start=\"2\">\n<li>Alternatively, you can rename a local branch by running the following commands:<\/li>\n<\/ol><p><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">git checkout master<\/code><\/p><p>Then, rename the branch by running:<\/p><p><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">git branch -m old-name new-name<\/code><\/p><ol class=\"wp-block-list\" start=\"3\">\n<li>Lastly, run this command to list all local and remote Git branches and verify that the renaming was successful:<\/li>\n<\/ol><p><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">git branch -a<\/code><\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-rename-a-remote-git-branch\">How to Rename a Remote Git Branch?<\/h2><p>Unlike renaming a local branch, it isn&rsquo;t possible to rename a remote branch directly. Instead, you&rsquo;ll have to delete the old remote branch name and <a href=\"https:\/\/git-scm.com\/docs\/git-push\" target=\"_blank\" rel=\"noopener\">push<\/a> a new branch name to the remote repository.<\/p><p>The renaming process is simple &ndash; follow these steps:<\/p><ol class=\"wp-block-list\">\n<li>To start, you will need to rename a local branch by following the previous steps using the <strong>-m<\/strong> option.<\/li>\n\n\n\n<li>Then, <strong>delete<\/strong> the <strong>old<\/strong> <strong>branch<\/strong> and <strong>push<\/strong> the <strong>new one<\/strong>. Do this by inputting the following command:<\/li>\n<\/ol><p><code data-enlighter-language=\"cpp\" class=\"EnlighterJSRAW\">git push origin --delete old-name<\/code><\/p><ol class=\"wp-block-list\" start=\"3\">\n<li>Finish by resetting the upstream branch for your new local one:<\/li>\n<\/ol><p><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">git push origin -u new-name<\/code><\/p><p>Alternatively, you can rename a remote git branch by overwriting it with the command below:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">git push origin :old-name new-name\ngit push origin &ndash;u new-name<\/pre><h2 class=\"wp-block-heading\" id=\"h-how-to-create-a-new-local-git-branch\">How to Create a New Local Git Branch?<\/h2><p>Before creating a new branch, it&rsquo;s essential to understand what <strong>Git commit <\/strong>is. It refers to a command that saves changes to a local repository. <strong>Git commit<\/strong> captures snapshots of changes happening within a specific project.<\/p><p>When you create a new local Git branch, Git establishes a new pointer to it.<\/p><p>With the concept cleared up, we can create a new local branch:<\/p><ol class=\"wp-block-list\">\n<li>Navigate to the root of your master branch:<\/li>\n<\/ol><p><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">cd repository-name<\/code><\/p><ol class=\"wp-block-list\" start=\"2\">\n<li>Create a new branch via the following command:<\/li>\n<\/ol><p><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">git branch new-branch-name<\/code><\/p><ol class=\"wp-block-list\" start=\"3\">\n<li>Alternatively, you can create a new branch and switch to it using the <strong>checkout <\/strong>command:<\/li>\n<\/ol><p><code data-enlighter-language=\"apache\" class=\"EnlighterJSRAW\">git checkout -b new-branch-name<\/code><\/p><p>The <strong>-b<\/strong> option tells Git to run the <strong>Git branch<\/strong> command before <strong>Git checkout<\/strong>.<\/p><p>You can instead clone a branch and switch to it:<\/p><p><code data-enlighter-language=\"asm\" class=\"EnlighterJSRAW\">git checkout -b new-branch-name origin\/new-branch-name<\/code><\/p><ol class=\"wp-block-list\" start=\"4\">\n<li>Next, switch to your new branch:<\/li>\n<\/ol><p><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">git checkout new-branch-name<\/code><\/p><ol class=\"wp-block-list\" start=\"5\">\n<li>Finally, verify that you are on the new branch using the command below:<\/li>\n<\/ol><p><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">git status<\/code><\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-remove-a-local-git-branch\">How to Remove a Local Git Branch?<\/h2><p>When a developer successfully adds new features, it is recommended to delete the <a href=\"\/tutorials\/how-to-use-git-branches\/\">Git branches<\/a> used in development as they no longer serve a purpose and can clutter your code.<\/p><p>Note that Git will <strong>refuse<\/strong> to delete a branch containing commits that haven&rsquo;t been merged into a remote branch or a repository.<\/p><p>To remove a local branch, use one of the following <a href=\"\/tutorials\/basic-git-commands\">Git commands<\/a>:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">git branch -d branch_name\ngit branch -D branch_name<\/pre><p>The <strong>-d<\/strong> option (<strong>&ndash;delete<\/strong>) will remove your local branch if you have already pushed and merged it with the remote branch.<\/p><p>The <strong>-D<\/strong> option (<strong>&ndash;delete &ndash;force<\/strong>) will remove the local branch regardless of whether it&rsquo;s been merged or not.<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-remove-a-remote-git-branch\">How to Remove a Remote Git Branch?<\/h2><p>You can also remove a remote Git branch by specifying the names of both the remote repository and the branch. In most cases, the name of the remote repository will be <strong>origin<\/strong>, and the command will look like this:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">git push origin --delete branch_name\ngit push origin :branch_name<\/pre><h2 class=\"wp-block-heading\" id=\"h-inspection-and-comparison\">Inspection and Comparison<\/h2><p>In Git, you can view any changes that you&rsquo;ve made. To see them, enter the following command:<\/p><p><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">git log<\/code><\/p><p>For a more detailed summary, input this command:<\/p><p><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">git log --summary<\/code><\/p><p>These commands will return a list of every commit made within a repository.<\/p><p>If you&rsquo;re looking for a specific commit, combing through all of them may be too time-consuming. Fortunately, there are a few flags that you can use to filter the output:<\/p><ul class=\"wp-block-list\">\n<li><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">git log -n 3<\/code> &ndash; orders the results from the most recent.<\/li>\n\n\n\n<li><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">git log --after=\"2021-3-2\"<\/code> &ndash; returns a list of commits after the specified date.<\/li>\n\n\n\n<li><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">git log -S\"# Introduction\"<\/code> &ndash; displays a commit containing particular content.<\/li>\n\n\n\n<li><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">git log -- filename<\/code> &ndash; shows a list of commits inside a specific file path.<\/li>\n<\/ul><h2 class=\"wp-block-heading\" id=\"h-how-to-deploy-a-git-repository-in-hpanel\">How to Deploy a Git Repository in hPanel<\/h2><p>To ensure an effective and efficient workflow, Hostinger offers seamless Git integration on the <strong>hPanel <\/strong>dashboard.<\/p><p>Follow these steps to deploy a Git repository from <strong>hPanel<\/strong>:<\/p><ol class=\"wp-block-list\">\n<li>Access your <strong>hPanel<\/strong> dashboard and navigate to the <strong>Advanced <\/strong>section.<\/li>\n\n\n\n<li>Click on the <strong>Git<\/strong> icon.<\/li>\n<\/ol><figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/hpanel-advanced-git-highlight.png\"><img decoding=\"async\" width=\"464\" height=\"658\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/hpanel-advanced-git-highlight.png\/public\" alt=\"Git section on hPanel\" class=\"wp-image-79444\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/hpanel-advanced-git-highlight.png\/w=464,fit=scale-down 464w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/hpanel-advanced-git-highlight.png\/w=212,fit=scale-down 212w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/hpanel-advanced-git-highlight.png\/w=106,fit=scale-down 106w\" sizes=\"(max-width: 464px) 100vw, 464px\" \/><\/a><\/figure><ol class=\"wp-block-list\" start=\"3\">\n<li>Configure your deployment settings under the <strong>Create a New Repository<\/strong> section.<\/li>\n<\/ol><figure class=\"wp-block-image size-full\"><a href=\"https:\/\/www.hostinger.com\/tutorials\/wp-content\/uploads\/sites\/2\/2023\/03\/hpanel-advanced-git.png\"><img decoding=\"async\" width=\"1010\" height=\"760\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/hpanel-advanced-git.png\/public\" alt=\"Configuring deployment settings in the Create a New Repository section \" class=\"wp-image-79441\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/hpanel-advanced-git.png\/w=1010,fit=scale-down 1010w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/hpanel-advanced-git.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/hpanel-advanced-git.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/03\/hpanel-advanced-git.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1010px) 100vw, 1010px\" \/><\/a><\/figure><ol class=\"wp-block-list\" start=\"4\">\n<li>Make sure to fill out the <strong>Repository<\/strong> <strong>Address<\/strong> and <strong>Branch <\/strong>fields with the correct details or the deployment will fail. Leave the <strong>Directory <\/strong>field empty. The system will automatically deploy your repository in the <strong>public_html<\/strong> folder.<\/li>\n<\/ol><h2 class=\"wp-block-heading\" id=\"h-how-to-clone-a-remote-repository\">How to Clone a Remote Repository?<\/h2><p>Cloning a repository lets you download the complete source code of the repository to your computer, thus making an identical copy of it.<\/p><p>To do so, you&rsquo;ll need to use the <strong>Git clone<\/strong> command. You&rsquo;ll also have to specify the <strong>URL<\/strong> of the repository. Begin by following the steps below:<\/p><ol class=\"wp-block-list\">\n<li>Clone the master branch from the remote repository by using <strong>HTTPS<\/strong> or <strong>SSH<\/strong>.<br>For HTTPS, run this command:<\/li>\n<\/ol><p><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">git clone https:\/\/github.com\/user-name\/your-repository-name.git<\/code><\/p><p>For <a href=\"\/tutorials\/ssh-tutorial-how-does-ssh-work\">SSH<\/a>, input this:<\/p><p><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">git clone ssh:\/\/github.com\/user-name\/your-repository-name.git<\/code><\/p><ol class=\"wp-block-list\" start=\"2\">\n<li>Use the <strong>cd<\/strong> command to navigate to the root of the cloned repository:<\/li>\n<\/ol><p><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">cd your_apps<\/code><\/p><ol class=\"wp-block-list\" start=\"3\">\n<li>You can check the branch status with the following command:<\/li>\n<\/ol><p><code data-enlighter-language=\"generic\" class=\"EnlighterJSRAW\">git status<\/code><\/p><p>Once you have cloned a repository to your computer, any changes you make won&rsquo;t affect the original.<\/p><h2 class=\"wp-block-heading\" id=\"h-additional-information-on-git\">Additional Information on Git<\/h2><p>For more information on how to use Git and related subjects, check out these links:<\/p><ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/git-scm.com\/doc\" target=\"_blank\" rel=\"noopener\">The Official Git Documentation<\/a><\/li>\n\n\n\n<li><a href=\"\/tutorials\/how-to-install-git-on-ubuntu\">How to Install Git on Ubuntu Using APT and GitHub<\/a><\/li>\n\n\n\n<li><a href=\"\/tutorials\/how-to-use-putty-ssh\">Connect to a Remote Server Through PuTTY SSH<\/a><\/li>\n<\/ul><h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2><p>Git is a tool used by developers to facilitate collaboration during software development. By using Git branches, one of the system&rsquo;s most important functions, users can implement new features without interfering with the source code.<\/p><p>This article has demonstrated how to manage Git branches with different commands, such as renaming or creating a branch, listing existing ones, and deleting them.<\/p><p>We hope you found this tutorial helpful. If you have any questions, leave them in the comment section.<\/p><figure class=\"wp-block-image size-full\"><a class=\"hgr-tutorials-cta hgr-tutorials-cta-web-hosting\" href=\"\/web-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\/public\" alt=\"Hostinger web hosting banner\" class=\"wp-image-98604\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/11\/Web-hosting_in-text-banner.png\/w=768,fit=scale-down 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><h2 class=\"wp-block-heading\" id=\"h-git-rename-branch-faq\">Git Rename Branch FAQ <\/h2><div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1664959991552\"><h3 class=\"schema-faq-question\">Can I Rename a Remote Branch in Git?<\/h3> <p class=\"schema-faq-answer\">No, in order to rename a remote Git branch you need to delete the old branch name, and then push the correctly named branch to the remote repository.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1664960011265\"><h3 class=\"schema-faq-question\">How Do I Rename a Local Git Branch?<\/h3> <p class=\"schema-faq-answer\">Run the command git branch -m to rename a local Git branch.<\/p> <\/div> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>Git is a Version Control System (VCS) used by developers to facilitate collaboration. It is useful for coordinating work and [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/tutorials\/how-to-rename-a-git-branch\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":110,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"Git Rename Branch \u2013 How to Rename a Local and Remote Git Branch","rank_math_description":"Here we'll show you how to use the Git rename branch command step-by-step. Learn how simple it is to both fix and tidy up your Git projects.","rank_math_focus_keyword":"git rename branch","footnotes":""},"categories":[22646,22644],"tags":[],"class_list":["post-15804","post","type-post","status-publish","format-standard","hentry","category-pre-installed-applications","category-vps"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/how-to-rename-a-git-branch","default":0},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/tutoriales\/renombrar-rama-git","default":0},{"locale":"en-UK","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/how-to-rename-a-git-branch","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/how-to-rename-a-git-branch","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/how-to-rename-a-git-branch","default":0},{"locale":"es-MX","link":"https:\/\/www.hostinger.com\/mx\/tutoriales\/renombrar-rama-git","default":0},{"locale":"es-CO","link":"https:\/\/www.hostinger.com\/co\/tutoriales\/renombrar-rama-git","default":0},{"locale":"es-AR","link":"https:\/\/www.hostinger.com\/ar\/tutoriales\/renombrar-rama-git","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/how-to-rename-a-git-branch","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/how-to-rename-a-git-branch","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/how-to-rename-a-git-branch","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/how-to-rename-a-git-branch","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/15804","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/users\/110"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/comments?post=15804"}],"version-history":[{"count":29,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/15804\/revisions"}],"predecessor-version":[{"id":109311,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/posts\/15804\/revisions\/109311"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/media?parent=15804"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/categories?post=15804"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/tutorials\/wp-json\/wp\/v2\/tags?post=15804"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}