{"id":1657,"date":"2021-12-20T08:14:52","date_gmt":"2021-12-20T14:14:52","guid":{"rendered":"https:\/\/www.becomebetterprogrammer.com\/?p=1657"},"modified":"2022-04-25T09:37:47","modified_gmt":"2022-04-25T14:37:47","slug":"git-revert-last-commit","status":"publish","type":"post","link":"https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/git-revert-last-commit\/","title":{"rendered":"How to Revert the Last Commit Locally and Remote in Git"},"content":{"rendered":"\n<p>Working as software engineers means constantly switching between repository branches, committing file changes, and pulling and pushing changes in different branches. However, there is a time when you commit local files that should have never been in the repository, and even worst you end up using the <code>push<\/code> command to add those changes in the remote repository. <\/p>\n\n\n\n<p>What can you do to fix this? Fortunately, Git has options you can use to roll back to the last commit. In this article, we are going to show you how to use the <code>revert<\/code> command as well as make sure you are reverting to the previous commit in a local and remote environment.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\"><p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<\/div><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/git-revert-last-commit\/#Reverting_the_Last_Commit\" >Reverting the Last Commit<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/git-revert-last-commit\/#How_Git_revert_Works\" >How Git revert Works<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/git-revert-last-commit\/#Reverting_the_Last_Commit_Locally\" >Reverting the Last Commit Locally<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/git-revert-last-commit\/#Reverting_the_Last_Commit_in_Remote\" >Reverting the Last Commit in Remote<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/git-revert-last-commit\/#Conclusion\" >Conclusion<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/git-revert-last-commit\/#Interested_in_Learning_Other_Git_Commands\" >Interested in Learning Other Git Commands?<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Reverting_the_Last_Commit\"><\/span>Reverting the Last Commit<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>We are going to start by learning how to use the git <code>revert<\/code> command. Then, we will show you how to revert commits in your local repository as well as revert commits in a remote repository.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_Git_revert_Works\"><\/span>How Git <code>revert<\/code> Works<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The command <code>revert<\/code> in Git is used to generate a new commit to reverse the changes made in previous commits.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"800\" height=\"500\" src=\"https:\/\/www.becomebetterprogrammer.com\/wp-content\/uploads\/2021\/12\/Git-Revert.png\" alt=\"\" class=\"wp-image-1659\" title=\"Explanation of what git revert does\" srcset=\"https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/wp-content\/uploads\/2021\/12\/Git-Revert.png 800w, https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/wp-content\/uploads\/2021\/12\/Git-Revert-300x188.png 300w, https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/wp-content\/uploads\/2021\/12\/Git-Revert-768x480.png 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><figcaption>Explanation of what git revert does<\/figcaption><\/figure><\/div>\n\n\n\n<p>Using the revert command in Git is as simple as providing the commit identifier.<\/p>\n\n\n\n<pre class=\"wp-block-code language-git\"><code>git revert &lt;commit id&gt;<\/code><\/pre>\n\n\n\n<p>Let&#8217;s use the previous diagram as a repository example where we have git commits of A, B, and C, and C is the current commit. In case we want to revert the changes made from B to C, what we need to do is to use commit C to revert to the state of B.<\/p>\n\n\n\n<pre class=\"wp-block-code language-git\"><code>git revert C<\/code><\/pre>\n\n\n\n<p>Another option is to use the keyword <code>HEAD<\/code> instead of the commit id. The keyword <code>HEAD<\/code> is another way to say the current commit. Hence, if the current commit is C, then HEAD will pull the commit id of C.<\/p>\n\n\n\n<pre class=\"wp-block-code language-git\"><code>git revert HEAD<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Reverting_the_Last_Commit_Locally\"><\/span>Reverting the Last Commit Locally<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<ol class=\"wp-block-list\"><li>Let&#8217;s make sure we don&#8217;t have any changes in the current branch by using the <code>status<\/code> command.<\/li><\/ol>\n\n\n\n<pre class=\"wp-block-code language-git\"><code>git status<\/code><\/pre>\n\n\n\n<p>You will know there are no changes in your current branch if your terminal <strong>does not<\/strong> display the following message:<\/p>\n\n\n\n<p><code>Changes not staged for commit:<\/code><\/p>\n\n\n\n<p>2. Now, we need to get the id of the current commit. To do so, we will use the <code>log<\/code> command to display the list of previous commits we have made. I recommend using the <code>--oneline<\/code> flag to get the information of previous commits in one line. Otherwise, it will display other information such as the author and date of each commit, which is not needed to revert the last commit.<\/p>\n\n\n\n<pre class=\"wp-block-code language-git\"><code>git log --oneline<\/code><\/pre>\n\n\n\n<p>For instance, this is the list of previous commits I have in my current project.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"970\" height=\"246\" src=\"https:\/\/www.becomebetterprogrammer.com\/wp-content\/uploads\/2021\/12\/Example-of-git-log-oneline.png\" alt=\"\" class=\"wp-image-1661\" title=\"Terminal result from using git log --oneline command\" srcset=\"https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/wp-content\/uploads\/2021\/12\/Example-of-git-log-oneline.png 970w, https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/wp-content\/uploads\/2021\/12\/Example-of-git-log-oneline-300x76.png 300w, https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/wp-content\/uploads\/2021\/12\/Example-of-git-log-oneline-768x195.png 768w\" sizes=\"auto, (max-width: 970px) 100vw, 970px\" \/><figcaption>Terminal result from using git log &#8211;oneline command <\/figcaption><\/figure>\n\n\n\n<p>The first commit id logged in the terminal is the current commit where you are now. In my case, the current commit id is 98cfeb4.<\/p>\n\n\n\n<p>3. Use the current commit id or the <code>HEAD<\/code> keyword if you want to revert the last commit changes. <\/p>\n\n\n\n<pre class=\"wp-block-code language-git\"><code>git revert 98cfeb4<\/code><\/pre>\n\n\n\n<p>or<\/p>\n\n\n\n<pre class=\"wp-block-code language-git\"><code>git revert HEAD<\/code><\/pre>\n\n\n\n<p>4. Once you use the <code>revert<\/code> command, your terminal should display the following message:<\/p>\n\n\n\n<p><code>This reverts commit 98cfeb4fbd68f65346a764cd2b90c0b4900f7a5f<\/code><\/p>\n\n\n\n<p>Git will also prompt you to add a commit message. The default message will start with the text &#8220;Revert&#8221; followed by the commit message of the commit being reverted. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"715\" height=\"315\" src=\"https:\/\/www.becomebetterprogrammer.com\/wp-content\/uploads\/2021\/12\/Result-after-using-git-revert-command.png\" alt=\"\" class=\"wp-image-1662\" title=\"Git prompting to change commit message after using git revert\" srcset=\"https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/wp-content\/uploads\/2021\/12\/Result-after-using-git-revert-command.png 715w, https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/wp-content\/uploads\/2021\/12\/Result-after-using-git-revert-command-300x132.png 300w\" sizes=\"auto, (max-width: 715px) 100vw, 715px\" \/><figcaption>Git prompting to change commit message after using git revert<\/figcaption><\/figure><\/div>\n\n\n\n<p>Feel free to update the message. In my case, I won&#8217;t update it.<\/p>\n\n\n\n<p>5. Type <code>:qa!<\/code> to exit VIM mode<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"793\" height=\"420\" src=\"https:\/\/www.becomebetterprogrammer.com\/wp-content\/uploads\/2021\/12\/Quitting-VIM.png\" alt=\"\" class=\"wp-image-1664\" srcset=\"https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/wp-content\/uploads\/2021\/12\/Quitting-VIM.png 793w, https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/wp-content\/uploads\/2021\/12\/Quitting-VIM-300x159.png 300w, https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/wp-content\/uploads\/2021\/12\/Quitting-VIM-768x407.png 768w\" sizes=\"auto, (max-width: 793px) 100vw, 793px\" \/><figcaption>Exit VIM mode<\/figcaption><\/figure><\/div>\n\n\n\n<p> 6. You have reverted the last commit changes in your local repository. One quick way we can verify is by checking a new commit has been generated in the logs. Hence, let&#8217;s use again the <code>log<\/code> command.<\/p>\n\n\n\n<pre class=\"wp-block-code language-git\"><code>git log --oneline<\/code><\/pre>\n\n\n\n<p>Notice how 98cfeb4 is no longer the current commit in my example. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"989\" height=\"263\" src=\"https:\/\/www.becomebetterprogrammer.com\/wp-content\/uploads\/2021\/12\/After-using-git-revert-command-locally.png\" alt=\"\" class=\"wp-image-1665\" title=\"New commit generated after using git revert\" srcset=\"https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/wp-content\/uploads\/2021\/12\/After-using-git-revert-command-locally.png 989w, https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/wp-content\/uploads\/2021\/12\/After-using-git-revert-command-locally-300x80.png 300w, https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/wp-content\/uploads\/2021\/12\/After-using-git-revert-command-locally-768x204.png 768w\" sizes=\"auto, (max-width: 989px) 100vw, 989px\" \/><figcaption>New commit generated after using git revert <\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Reverting_the_Last_Commit_in_Remote\"><\/span>Reverting the Last Commit in Remote<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>To revert the last commit in a remote repository, you have to follow all the steps to revert the last commit in your local repository. Then, make sure to sync your remote repository using <code>pull<\/code> and <code>push<\/code> commands.<\/p>\n\n\n\n<p>For example, if we look at the last image which is the log of the commits in a local repository, you will notice the origin commit that is in sync with the remote repository is commit 98cfeb4.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"989\" height=\"263\" src=\"https:\/\/www.becomebetterprogrammer.com\/wp-content\/uploads\/2021\/12\/Commit-in-sync-with-remote-repository.png\" alt=\"\" class=\"wp-image-1668\" srcset=\"https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/wp-content\/uploads\/2021\/12\/Commit-in-sync-with-remote-repository.png 989w, https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/wp-content\/uploads\/2021\/12\/Commit-in-sync-with-remote-repository-300x80.png 300w, https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/wp-content\/uploads\/2021\/12\/Commit-in-sync-with-remote-repository-768x204.png 768w\" sizes=\"auto, (max-width: 989px) 100vw, 989px\" \/><figcaption>Commit in sync with the remote repository<\/figcaption><\/figure>\n\n\n\n<p>Hence, we are going to <code>push<\/code> the latest commit, which is eca19cb, or commit that reverts changes made on commit 98cfeb4. However, prior to doing so, make sure there to get the latest changes from the remote repository by using the <code>pull<\/code> command.<\/p>\n\n\n\n<pre class=\"wp-block-code language-git\"><code>git pull<\/code><\/pre>\n\n\n\n<p>Now, we are ready to push the revert to commit to the remote repository.<\/p>\n\n\n\n<pre class=\"wp-block-code language-git\"><code>git push<\/code><\/pre>\n\n\n\n<p>To verify the remote is synced with the local repository, you have two options things. One is to use the <code>log<\/code> command.<\/p>\n\n\n\n<pre class=\"wp-block-code language-git\"><code>git log --oneline<\/code><\/pre>\n\n\n\n<p>And verify the origin is in the same commit of the HEAD.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"249\" src=\"https:\/\/www.becomebetterprogrammer.com\/wp-content\/uploads\/2021\/12\/Remote-Synced-with-local-repository-1024x249.png\" alt=\"\" class=\"wp-image-1669\" title=\"Remote synced with local repository\" srcset=\"https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/wp-content\/uploads\/2021\/12\/Remote-Synced-with-local-repository-1024x249.png 1024w, https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/wp-content\/uploads\/2021\/12\/Remote-Synced-with-local-repository-300x73.png 300w, https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/wp-content\/uploads\/2021\/12\/Remote-Synced-with-local-repository-768x187.png 768w, https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/wp-content\/uploads\/2021\/12\/Remote-Synced-with-local-repository.png 1091w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption>Remote synced with local repository<\/figcaption><\/figure><\/div>\n\n\n\n<p>The other option is to check the latest commit in your remote repository matches the latest commit in your local repository. In my case, I used Github.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"941\" height=\"312\" src=\"https:\/\/www.becomebetterprogrammer.com\/wp-content\/uploads\/2021\/12\/Checking-in-Github-latest-commit-matches-latest-commit-from-local-repository.png\" alt=\"\" class=\"wp-image-1670\" title=\"Checking in Github latest commit matches the latest commit from a local repository\" srcset=\"https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/wp-content\/uploads\/2021\/12\/Checking-in-Github-latest-commit-matches-latest-commit-from-local-repository.png 941w, https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/wp-content\/uploads\/2021\/12\/Checking-in-Github-latest-commit-matches-latest-commit-from-local-repository-300x99.png 300w, https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/wp-content\/uploads\/2021\/12\/Checking-in-Github-latest-commit-matches-latest-commit-from-local-repository-768x255.png 768w\" sizes=\"auto, (max-width: 941px) 100vw, 941px\" \/><figcaption>Checking in Github latest commit matches the latest commit from a local repository<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>In this article, you learned how to revert changes made on your latest commit using the <code>revert<\/code> command in both local and remote repositories. While you don&#8217;t typically revert changes every day if you are a programmer, it is important to know how to use the <code>revert<\/code> command in case you made a mistake to commit file changes that you didn&#8217;t intend to commit.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Interested_in_Learning_Other_Git_Commands\"><\/span>Interested in Learning Other Git Commands?<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>I wrote other articles explaining how to use other git commands, and I thought you might be interested in reading some of them since you are reading this.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"https:\/\/www.becomebetterprogrammer.com\/git-rebase\/\" title=\"https:\/\/www.becomebetterprogrammer.com\/git-rebase\/\">How to Rebase in Git: Explained Step-by-Step<\/a><\/li><li><a href=\"https:\/\/www.becomebetterprogrammer.com\/git-alias\/\">The Complete Guide to Git Alias: Shorcuts to Be Efficient<\/a><\/li><li><a href=\"https:\/\/www.becomebetterprogrammer.com\/git-head\/\">What is Git HEAD? A Practical Guide Explained with Examples<\/a><\/li><li><a href=\"https:\/\/www.becomebetterprogrammer.com\/learn-how-to-use-version-control-with-git-and-github-the-absolute-guide-for-beginners\/\">Learn How to Use Version Control with Git and GitHub: The Absolute Guide for Beginners<\/a><\/li><li><a href=\"https:\/\/www.becomebetterprogrammer.com\/how-to-update-github-personal-access-tokens\/\">How to Update GitHub Personal Access Tokens?<\/a><\/li><\/ul>\n\n\n\n<p class=\"has-text-align-left\"><strong>Did you like this article?<\/strong><\/p>\n\n\n\n<p class=\"has-text-align-left\">Share your thoughts by replying on <a href=\"https:\/\/twitter.com\/bbprogrammer\" target=\"_blank\" rel=\"noreferrer noopener\">Twitter of Become A Better Programmer<\/a> or to <a href=\"https:\/\/twitter.com\/arealesramirez\" target=\"_blank\" rel=\"noreferrer noopener\">personal my Twitter account<\/a>.<\/p>\n\n\n\n<figure class=\"wp-block-embed aligncenter is-type-rich is-provider-twitter wp-block-embed-twitter\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"twitter-tweet\" data-width=\"550\" data-dnt=\"true\"><p lang=\"en\" dir=\"ltr\">Did you forget to remote that console.log from your commit and you pushed that to the remote repository?<br><br>Mistakes happen to anyone, and we are here to help you&#8230;<br><br>revert them<br><br>Yes, that&#39;s how we fix mistakes in Git, revert them!<a href=\"https:\/\/t.co\/0QV7xO1OuP\">https:\/\/t.co\/0QV7xO1OuP<\/a><\/p>&mdash; Become A Better Programmer (@bbprogrammer) <a href=\"https:\/\/twitter.com\/bbprogrammer\/status\/1472934296977563654?ref_src=twsrc%5Etfw\" target=\"_blank\" rel=\"noopener\">December 20, 2021<\/a><\/blockquote><script async src=\"https:\/\/platform.twitter.com\/widgets.js\" charset=\"utf-8\"><\/script>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Did you commit file changes by mistake in a remote repository? Don&#8217;t worry, this guide explains how to revert your previous commit and save the day.<\/p>\n","protected":false},"author":1,"featured_media":1673,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"nf_dc_page":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[28,14],"tags":[],"class_list":["post-1657","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-git","category-tutorial","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-50"],"_links":{"self":[{"href":"https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/wp-json\/wp\/v2\/posts\/1657","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/wp-json\/wp\/v2\/comments?post=1657"}],"version-history":[{"count":5,"href":"https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/wp-json\/wp\/v2\/posts\/1657\/revisions"}],"predecessor-version":[{"id":2472,"href":"https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/wp-json\/wp\/v2\/posts\/1657\/revisions\/2472"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/wp-json\/wp\/v2\/media\/1673"}],"wp:attachment":[{"href":"https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/wp-json\/wp\/v2\/media?parent=1657"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/wp-json\/wp\/v2\/categories?post=1657"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.becomebetterprogrammer.com\/staging\/4563\/wp-json\/wp\/v2\/tags?post=1657"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}