{"id":22251,"date":"2020-11-07T17:58:58","date_gmt":"2020-11-08T01:58:58","guid":{"rendered":"https:\/\/www.podfeet.com\/blog\/?p=22251"},"modified":"2020-11-08T09:59:50","modified_gmt":"2020-11-08T17:59:50","slug":"ccatp-659","status":"publish","type":"post","link":"https:\/\/www.podfeet.com\/blog\/2020\/11\/ccatp-659\/","title":{"rendered":"CCATP #659 \u2013 Bart Busschots on PBS 105 \u2013\u00a0Seeing the Past with Git"},"content":{"rendered":"<p>In this installment of Programming By Stealth, Bart takes us on a time traveling adventure with Git.  By using commands like <code>git diff<\/code> we can see changes over time, but we can actually see older versions of the code in a couple of ways. Using the <code>archive<\/code> command we learned out to pull just the files at a certain point in time (without the history) and the more terrifying <code>checkout<\/code> command that creates a &#8220;detached HEAD&#8221;!  Bart even explains why that phrase was introduced and what it actually means.  This was a fun lesson and a good foundation for what we&#8217;ll learn next time, when we&#8217;ll learn about stashing and branching to control the past and future.<\/p>\n<p>Follow along with Bart&#8217;s tutorial shownotes at <a href=\"https:\/\/pbs.bartificer.net\/pbs105\" target=\"_blank\" rel=\"noopener noreferrer\">pbs.bartificer.net\/&#8230;<\/a><\/p>\n<audio class=\"wp-audio-shortcode\" id=\"audio-22251-1\" preload=\"none\" style=\"width: 100%;\" controls=\"controls\"><source type=\"audio\/mpeg\" src=\"https:\/\/media.blubrry.com\/nosillacast\/traffic.libsyn.com\/nosillacast\/CCATP_2020_11_07.mp3?_=1\" \/><a href=\"https:\/\/media.blubrry.com\/nosillacast\/traffic.libsyn.com\/nosillacast\/CCATP_2020_11_07.mp3\">https:\/\/media.blubrry.com\/nosillacast\/traffic.libsyn.com\/nosillacast\/CCATP_2020_11_07.mp3<\/a><\/audio>\n<p><a title=\"mp3 download\" href=\"https:\/\/media.blubrry.com\/nosillacast\/traffic.libsyn.com\/nosillacast\/CCATP_2020_11_07.mp3\" target=\"_blank\" rel=\"noopener noreferrer\">mp3 download<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this installment of Programming By Stealth, Bart takes us on a time traveling adventure with Git. By using commands like git diff we can see changes over time, but we can actually see older versions of the code in a couple of ways. Using the archive command we learned out to pull just the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":21669,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[147,172,1,213],"tags":[2064,177,176,240],"class_list":["post-22251","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog-posts","category-ccatp","category-podcasts","category-programming-by-stealth","tag-git","tag-pbs","tag-programming","tag-programming-by-stealth"],"jetpack_featured_media_url":"https:\/\/www.podfeet.com\/blog\/wp-content\/uploads\/2020\/08\/PBS_logo-with-mask.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts\/22251","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/comments?post=22251"}],"version-history":[{"count":2,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts\/22251\/revisions"}],"predecessor-version":[{"id":22261,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts\/22251\/revisions\/22261"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/media\/21669"}],"wp:attachment":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/media?parent=22251"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/categories?post=22251"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/tags?post=22251"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}