{"id":297482,"date":"2021-07-12T18:00:00","date_gmt":"2021-07-12T15:00:00","guid":{"rendered":"https:\/\/en.buradabiliyorum.com\/how-to-link-a-commit-from-a-github-issue-cloudsavvy-it\/"},"modified":"2021-07-12T18:00:00","modified_gmt":"2021-07-12T15:00:00","slug":"how-to-link-a-commit-from-a-github-issue-cloudsavvy-it","status":"publish","type":"post","link":"https:\/\/buradabiliyorum.com\/en\/how-to-link-a-commit-from-a-github-issue-cloudsavvy-it\/","title":{"rendered":"#How to Link a Commit From a Github Issue \u2013 CloudSavvy IT"},"content":{"rendered":"<p><strong>&#8220;#How to Link a Commit From a Github Issue \u2013 CloudSavvy IT&#8221;<\/strong><\/p>\n<div id=\"article-content-area\">\n<img loading=\"lazy\" decoding=\"async\" class=\"type:primaryImage  alignnone wp-image-2475 size-full\" src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2019\/10\/ba9a7cbd.png?width=1198&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"The GitHub logo.\" width=\"700\" height=\"300\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>We\u2019ve all done it\u2014we excitedly push a commit to solve an issue, leave a useful comment like \u201cdoh!\u201d, and then forget to reference the Github issue number. Now they won\u2019t be linked together\u2026 or will they?<\/p>\n<p>Luckily you can easily reference a commit in a Github issue by simply pasting in the hash which will automatically turn into a link. Most of you already know how to do that, but for everybody else, we\u2019ll detail the couple of steps.<\/p>\n<p>First go find the commit in your repository. That\u2019s easy enough, just click that \u201cX commits\u201d link.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4714\" src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2020\/05\/49fdb2b7.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"github click on commits\" width=\"1400\" height=\"310\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Now locate the actual commit, which you can usually find by the useful commit message you left. In our case, there\u2019s like 37 commits that all say \u201cDoh!\u201d so we\u2019ll just grab the last one. Click the clipboard icon to copy the hash to the clipboard.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4713\" src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2020\/05\/82afaaa4.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"github find hash\" width=\"1400\" height=\"388\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Paste it into your commit message.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4712\" src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2020\/05\/654bf8d8.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"github paste hash\" width=\"1400\" height=\"484\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>And voila! The commit message magically gets turned into a link to the place where you fixed a very stupid bug that you should have caught during testing but you forgot to test and pushed it straight to production because you\u2019re the best.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4711\" src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2020\/05\/931922ca.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"github issue linked\" width=\"1400\" height=\"290\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Not saying that h<a href=\"https:\/\/buradabiliyorum.com\/en\/category\/download-scripts-themes-apps\/\" data-internallinksmanager029f6b8e52c=\"9\" title=\"Download Scripts &amp; Themes &amp; Apps\" target=\"_blank\" rel=\"noopener\">app<\/a>ened in this case. Daily.\n<\/p><\/div>\n<blockquote><p><strong><span style=\"color: #ff6600;\">If you liked the article, do not forget to share it with your friends. Follow us on\u00a0<span style=\"color: #ff0000;\"><a style=\"color: #ff0000;\" href=\"https:\/\/news.google.com\/publications\/CAAqBwgKMLG0nwswvr63Aw\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Google News<\/a><\/span>\u00a0too, click on the star and choose us from your favorites.<\/span><\/strong><\/p><\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\">For forums sites go to <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/forum.buradabiliyorum.com\/\" target=\"_blank\" rel=\"noopener\">Forum.BuradaBiliyorum.Com<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\"><strong>If you want to read more like this article, you can visit our <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/en.buradabiliyorum.com\/technology\/\" target=\"_blank\" rel=\"noopener\">Technology category.<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<p><span style=\"color: black;\"><a style=\"color: #ff9900;\" href=\"https:\/\/www.cloudsavvyit.com\/4710\/how-to-link-a-commit-from-a-github-issue\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;#How to Link a Commit From a Github Issue \u2013 CloudSavvy IT&#8221; We\u2019ve all done it\u2014we excitedly push a commit to solve an issue, leave a useful comment like \u201cdoh!\u201d, and then forget to reference the Github issue number. Now they won\u2019t be linked together\u2026 or will they? Luckily you can easily reference a commit&#8230;<\/p>\n","protected":false},"author":1,"featured_media":297483,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2019\/10\/ba9a7cbd.png","fifu_image_alt":"","footnotes":""},"categories":[18],"tags":[],"class_list":["post-297482","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/297482","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/comments?post=297482"}],"version-history":[{"count":0,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/297482\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media\/297483"}],"wp:attachment":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media?parent=297482"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/categories?post=297482"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/tags?post=297482"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}