{"id":93,"date":"2012-05-25T04:09:03","date_gmt":"2012-05-25T04:09:03","guid":{"rendered":"http:\/\/finaldie.com\/wordpress\/?p=93"},"modified":"2012-05-25T07:38:06","modified_gmt":"2012-05-25T07:38:06","slug":"checkout-a-specify-commit-in-git","status":"publish","type":"post","link":"https:\/\/finaldie.com\/blog\/checkout-a-specify-commit-in-git\/","title":{"rendered":"Checkout a specific commit in GIT"},"content":{"rendered":"<p>Many people may want to get a specific version of you working copy to lookup the detail information on it. So, how to?<\/p>\n<p>The way is simple: &#8220;git checkout <em><strong>commit [ &#8212; filename or directory]<\/strong><\/em>&#8221;<\/p>\n<p>Then you will find you in a special branch named &#8220;no branch&#8221;, you can add\/modify files, and create a new branch for continue working.<\/p>\n<p>May help you :D<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Many people may want to get a specific version of you working copy to lookup the detail information on it. So, how to? The way is simple: &#8220;git checkout commit [ &#8212; filename or directory]&#8221; Then you will find you in a special branch named &#8220;no branch&#8221;, you can add\/modify files, and create a new &#8230; <a title=\"Checkout a specific commit in GIT\" class=\"read-more\" href=\"https:\/\/finaldie.com\/blog\/checkout-a-specify-commit-in-git\/\" aria-label=\"More on Checkout a specific commit in GIT\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Checkout a specific commit in GIT - Final Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/finaldie.com\/blog\/checkout-a-specify-commit-in-git\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Checkout a specific commit in GIT - Final Blog\" \/>\n<meta property=\"og:description\" content=\"Many people may want to get a specific version of you working copy to lookup the detail information on it. So, how to? The way is simple: &#8220;git checkout commit [ &#8212; filename or directory]&#8221; Then you will find you in a special branch named &#8220;no branch&#8221;, you can add\/modify files, and create a new ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/finaldie.com\/blog\/checkout-a-specify-commit-in-git\/\" \/>\n<meta property=\"og:site_name\" content=\"Final Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/hu.yuzhang\" \/>\n<meta property=\"article:published_time\" content=\"2012-05-25T04:09:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2012-05-25T07:38:06+00:00\" \/>\n<meta name=\"author\" content=\"final\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@hyzwowtools\" \/>\n<meta name=\"twitter:site\" content=\"@hyzwowtools\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"final\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/finaldie.com\/blog\/checkout-a-specify-commit-in-git\/\",\"url\":\"https:\/\/finaldie.com\/blog\/checkout-a-specify-commit-in-git\/\",\"name\":\"Checkout a specific commit in GIT - Final Blog\",\"isPartOf\":{\"@id\":\"https:\/\/finaldie.com\/blog\/#website\"},\"datePublished\":\"2012-05-25T04:09:03+00:00\",\"dateModified\":\"2012-05-25T07:38:06+00:00\",\"author\":{\"@id\":\"https:\/\/finaldie.com\/blog\/#\/schema\/person\/2d4c840d6e8e197f8ade98af2bd2fab3\"},\"breadcrumb\":{\"@id\":\"https:\/\/finaldie.com\/blog\/checkout-a-specify-commit-in-git\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/finaldie.com\/blog\/checkout-a-specify-commit-in-git\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/finaldie.com\/blog\/checkout-a-specify-commit-in-git\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/finaldie.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Checkout a specific commit in GIT\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/finaldie.com\/blog\/#website\",\"url\":\"https:\/\/finaldie.com\/blog\/\",\"name\":\"Final Blog\",\"description\":\"As simple as possible...\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/finaldie.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/finaldie.com\/blog\/#\/schema\/person\/2d4c840d6e8e197f8ade98af2bd2fab3\",\"name\":\"final\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/finaldie.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/4c720545b79ddb0f23b527e0bbcfd9bc?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/4c720545b79ddb0f23b527e0bbcfd9bc?s=96&r=g\",\"caption\":\"final\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Checkout a specific commit in GIT - Final Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/finaldie.com\/blog\/checkout-a-specify-commit-in-git\/","og_locale":"en_US","og_type":"article","og_title":"Checkout a specific commit in GIT - Final Blog","og_description":"Many people may want to get a specific version of you working copy to lookup the detail information on it. So, how to? The way is simple: &#8220;git checkout commit [ &#8212; filename or directory]&#8221; Then you will find you in a special branch named &#8220;no branch&#8221;, you can add\/modify files, and create a new ... Read more","og_url":"https:\/\/finaldie.com\/blog\/checkout-a-specify-commit-in-git\/","og_site_name":"Final Blog","article_publisher":"https:\/\/www.facebook.com\/hu.yuzhang","article_published_time":"2012-05-25T04:09:03+00:00","article_modified_time":"2012-05-25T07:38:06+00:00","author":"final","twitter_card":"summary_large_image","twitter_creator":"@hyzwowtools","twitter_site":"@hyzwowtools","twitter_misc":{"Written by":"final"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/finaldie.com\/blog\/checkout-a-specify-commit-in-git\/","url":"https:\/\/finaldie.com\/blog\/checkout-a-specify-commit-in-git\/","name":"Checkout a specific commit in GIT - Final Blog","isPartOf":{"@id":"https:\/\/finaldie.com\/blog\/#website"},"datePublished":"2012-05-25T04:09:03+00:00","dateModified":"2012-05-25T07:38:06+00:00","author":{"@id":"https:\/\/finaldie.com\/blog\/#\/schema\/person\/2d4c840d6e8e197f8ade98af2bd2fab3"},"breadcrumb":{"@id":"https:\/\/finaldie.com\/blog\/checkout-a-specify-commit-in-git\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/finaldie.com\/blog\/checkout-a-specify-commit-in-git\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/finaldie.com\/blog\/checkout-a-specify-commit-in-git\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/finaldie.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Checkout a specific commit in GIT"}]},{"@type":"WebSite","@id":"https:\/\/finaldie.com\/blog\/#website","url":"https:\/\/finaldie.com\/blog\/","name":"Final Blog","description":"As simple as possible...","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/finaldie.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/finaldie.com\/blog\/#\/schema\/person\/2d4c840d6e8e197f8ade98af2bd2fab3","name":"final","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/finaldie.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/4c720545b79ddb0f23b527e0bbcfd9bc?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4c720545b79ddb0f23b527e0bbcfd9bc?s=96&r=g","caption":"final"}}]}},"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/finaldie.com\/blog\/wp-json\/wp\/v2\/posts\/93"}],"collection":[{"href":"https:\/\/finaldie.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/finaldie.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/finaldie.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/finaldie.com\/blog\/wp-json\/wp\/v2\/comments?post=93"}],"version-history":[{"count":2,"href":"https:\/\/finaldie.com\/blog\/wp-json\/wp\/v2\/posts\/93\/revisions"}],"predecessor-version":[{"id":95,"href":"https:\/\/finaldie.com\/blog\/wp-json\/wp\/v2\/posts\/93\/revisions\/95"}],"wp:attachment":[{"href":"https:\/\/finaldie.com\/blog\/wp-json\/wp\/v2\/media?parent=93"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/finaldie.com\/blog\/wp-json\/wp\/v2\/categories?post=93"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/finaldie.com\/blog\/wp-json\/wp\/v2\/tags?post=93"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}