{"id":206,"date":"2011-01-15T16:15:35","date_gmt":"2011-01-15T15:15:35","guid":{"rendered":"http:\/\/www.nax.cz\/?p=206"},"modified":"2011-01-15T16:15:35","modified_gmt":"2011-01-15T15:15:35","slug":"move-a-remote-git-tag","status":"publish","type":"post","link":"https:\/\/nax.cz\/?p=206","title":{"rendered":"Move a remote Git tag"},"content":{"rendered":"<p>You know, you have scheduled release and in the morning before turnover window find out there is a bug. Quickly &#8211; fix it, test it all again and &#8230; now what? Release tag is already pushed in remote repository!<\/p>\n<p>I found the answer in <a href=\"http:\/\/nathanhoad.net\/how-to-delete-a-remote-git-tag\">Nathan Hoad blog<\/a>. To make it even more easier for you &#8211; I list whole process for moving a tag:<br \/>\n<code><br \/>\ngit pull # to marge changes from others<br \/>\ngit tag -d v0.99 # delete the tag<br \/>\ngit push origin :refs\/tags\/v0.99 # this remove tag from remote repository<br \/>\ngit tag v0.99 # this mark the most recent commit<br \/>\ngit push origin v0.99 # push a new tag position to remote repository<br \/>\n<\/code><\/p>\n<p>BTW if you are sitting on linux system, try commands:<br \/>\n<code><br \/>\ngit gui<br \/>\ngitk --all<br \/>\n<\/code><\/p>\n<p>I found them useful.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>You&#8217;ve already pushed changes including a new release tag and then found a bug in your code? You want to include fix for bug into the release?<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[18,19],"tags":[],"class_list":["post-206","post","type-post","status-publish","format-standard","hentry","category-do-prace","category-unix"],"_links":{"self":[{"href":"https:\/\/nax.cz\/index.php?rest_route=\/wp\/v2\/posts\/206","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nax.cz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nax.cz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nax.cz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nax.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=206"}],"version-history":[{"count":0,"href":"https:\/\/nax.cz\/index.php?rest_route=\/wp\/v2\/posts\/206\/revisions"}],"wp:attachment":[{"href":"https:\/\/nax.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=206"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nax.cz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=206"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nax.cz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=206"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}