{"id":37299,"date":"2023-07-07T20:26:37","date_gmt":"2023-08-13T06:20:41","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/git-reset%e5%92%8cgit-checkout%e6%9c%89%e4%bb%80%e4%b9%88%e4%b8%8d%e5%90%8c%ef%bc%9f\/"},"modified":"2024-04-30T12:30:59","modified_gmt":"2024-04-30T04:30:59","slug":"git-reset%e5%92%8cgit-checkout%e6%9c%89%e4%bb%80%e4%b9%88%e4%b8%8d%e5%90%8c%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/git-reset%e5%92%8cgit-checkout%e6%9c%89%e4%bb%80%e4%b9%88%e4%b8%8d%e5%90%8c%ef%bc%9f\/","title":{"rendered":"git reset\u548cgit checkout\u6709\u4ec0\u4e48\u4e0d\u540c\uff1f"},"content":{"rendered":"<p>\u4f60\u597d\u3002<br \/>\n\u524d\u51e0\u5929\u6211\u4e0d\u77e5\u9053\u8fd9\u4e24\u4e2a\u6807\u9898\u7684\u533a\u522b\uff0c\u6240\u4ee5\u8fdb\u884c\u4e86\u4e00\u4e9b\u8c03\u67e5\u3002<br \/>\n\u56e0\u4e3a\u6211\u4ece\u672a\u5728\u5b9e\u52a1\u4e2d\u4f7f\u7528\u8fc7\uff0c\u6240\u4ee5\u7406\u89e3\u53ef\u80fd\u6709\u4e9b\u8bef\u5dee\uff0c\u4f46\u8fd9\u662f\u4e3a\u4e86\u603b\u7ed3\u76ee\u524d\u7684\u7406\u89e3\u3002<br \/>\n\u6b64\u5916\uff0c\u4e3a\u4e86\u4e0d\u4f7f\u6587\u7ae0\u6df7\u4e71\uff0c\u6211\u5728\u5199\u4f5c\u8fc7\u7a0b\u4e2d\u6709\u610f\u8bc6\u5730\u7b80\u660e\u627c\u8981\u3002<\/p>\n<h1>\u5728\u54ea\u91cc\u4f7f\u7528\uff1f<\/h1>\n<p>\u8fd9\u4e24\u4e2a\u547d\u4ee4\u7528\u4e8e\u5c06\u7d22\u5f15\u6216\u5de5\u4f5c\u533a\u4e2d\u7684\u67d0\u4e2a\u5185\u5bb9\u6062\u590d\u5230\u67d0\u4e2a\u72b6\u6001\u3002<\/p>\n<p>1. \u5bf9\u4e8e\u2460\u548c\u2461\uff0c\u5206\u522b\u51fa\u73b0\u4e86\u4e0b\u9762\u7684\u5019\u9009\u9879\u3002<\/p>\n<p>2. \u5173\u4e8e\u2460\u548c\u2461\uff0c\u5206\u522b\u6709\u4ee5\u4e0b\u5019\u9009\u65b9\u6848\u51fa\u73b0\u3002<\/p>\n<p>3. \u5c31\u2460\u548c\u2461\u800c\u8a00\uff0c\u5404\u81ea\u51fa\u73b0\u4e86\u4e0b\u5217\u7684\u5019\u9009\u3002<\/p>\n<p>4. \u6709\u5173\u4e8e\u2460\u548c\u2461\uff0c\u5206\u522b\u51fa\u73b0\u4e86\u4ee5\u4e0b\u7684\u5019\u9009\u9009\u9879\u3002<\/p>\n<p>5. \u5bf9\u4e8e\u2460\u548c\u2461\u6765\u8bf4\uff0c\u5404\u6709\u4e0b\u9762\u7684\u5019\u9009\u51fa\u73b0\u3002<\/p>\n<p>&#8211; \u4ec5\u7279\u5b9a\u7684\u6587\u4ef6<br \/>\n&#8211; \u6240\u6709\u7684\u6587\u4ef6<\/p>\n<p>\u5934\u6216\u7d22\u5f15<br \/>\n\u8fc7\u53bb\u7684\u63d0\u4ea4<\/p>\n<h1>\u5f53\u4f60\u7528git help\u547d\u4ee4\u67e5\u770b\u5404\u4e2a\u547d\u4ee4\u65f6<\/h1>\n<h3>git reset &#8211;\u5e2e\u52a9<\/h3>\n<pre class=\"post-pre\"><code>NAME\r\n       git-reset - Reset current HEAD to the specified state\r\n\r\nSYNOPSIS\r\n       git reset [-q] [&lt;tree-ish&gt;] [--] &lt;pathspec&gt;...\r\n       git reset [-q] [--pathspec-from-file=&lt;file&gt; [--pathspec-file-nul]] [&lt;tree-ish&gt;]\r\n       git reset (--patch | -p) [&lt;tree-ish&gt;] [--] [&lt;pathspec&gt;...]\r\n       git reset [--soft | --mixed [-N] | --hard | --merge | --keep] [-q] [&lt;commit&gt;]\r\n\r\nDESCRIPTION\r\n       In the first three forms, copy entries from &lt;tree-ish&gt; to the index. In the last form, set the\r\n       current branch head (HEAD) to &lt;commit&gt;, optionally modifying index and working tree to match. The\r\n       &lt;tree-ish&gt;\/&lt;commit&gt; defaults to HEAD in all forms.\r\n<\/code><\/pre>\n<p>\u603b\u7ed3\u8d77\u6765,<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u5c06HEAD\u4e2d\u7684\u5185\u5bb9\u62f7\u8d1d\u5230\u7d22\u5f15\u4e2d\uff0c\u5e76\u9009\u62e9\u6027\u5730\u5c06\u5176\u62f7\u8d1d\u5230\u5de5\u4f5c\u76ee\u5f55\u4e2d\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\u5c06HEAD\u6307\u5411\u6307\u5b9a\u7684\u63d0\u4ea4\uff0c\u5e76\u9009\u62e9\u6027\u5730\u4ece\u76ee\u6807\u63d0\u4ea4\u4e2d\u5c06\u5185\u5bb9\u62f7\u8d1d\u5230\u7d22\u5f15\u548c\u5de5\u4f5c\u76ee\u5f55\u4e2d\u3002<\/ol>\n<p>\u7b80\u5355\u6765\u8bf4\uff0c\u5c31\u662f\u5c06\u5f53\u524d\u7684HEAD\u79fb\u52a8\u5230\u6307\u5b9a\u7684\u72b6\u6001\uff0c\u5e76\u5c06\u5176\u590d\u5236\u5230\u7d22\u5f15\u548c\u5de5\u4f5c\u6811\u4e2d\uff0c\u6839\u636e\u9009\u9879\u9009\u62e9\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>&#8211; hard\uff1a\u5c06\u53d8\u66f4\u540c\u6b65\u5230\u7d22\u5f15\u548c\u5de5\u4f5c\u6811\uff08\u6ce8\u610f\uff0c\u73b0\u6709\u6587\u4ef6\u5c06\u4e0e\u6307\u5b9a\u7684HEAD\u540c\u6b65\uff09<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>&#8211; mixed\uff08\u9ed8\u8ba4\uff09\uff1a\u4ec5\u5c06\u53d8\u66f4\u540c\u6b65\u5230\u7d22\u5f15<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>&#8211; soft\uff1a\u4e0d\u8fdb\u884c\u53d8\u66f4\u540c\u6b65\uff08\u53ea\u6709HEAD\u4f1a\u79fb\u52a8\uff09<\/ol>\n<h3>\u8bf7\u4f7f\u7528git checkout &#8211;help\u547d\u4ee4\u6765\u83b7\u53d6\u5e2e\u52a9\u3002<\/h3>\n<pre class=\"post-pre\"><code>NAME\r\n       git-checkout - Switch branches or restore working tree files\r\n\r\nSYNOPSIS\r\n       git checkout [-q] [-f] [-m] [&lt;branch&gt;]\r\n       git checkout [-q] [-f] [-m] --detach [&lt;branch&gt;]\r\n       git checkout [-q] [-f] [-m] [--detach] &lt;commit&gt;\r\n       git checkout [-q] [-f] [-m] [[-b|-B|--orphan] &lt;new_branch&gt;] [&lt;start_point&gt;]\r\n       git checkout [-f|--ours|--theirs|-m|--conflict=&lt;style&gt;] [&lt;tree-ish&gt;] [--] &lt;pathspec&gt;...\r\n       git checkout [-f|--ours|--theirs|-m|--conflict=&lt;style&gt;] [&lt;tree-ish&gt;] --pathspec-from-file=&lt;file&gt; [--pathspec-file-nul]\r\n       git checkout (-p|--patch) [&lt;tree-ish&gt;] [--] [&lt;pathspec&gt;...]\r\n\r\nDESCRIPTION\r\n       Updates files in the working tree to match the version in the index or the specified tree. If no\r\n       pathspec was given, git checkout will also update HEAD to set the specified branch as the current\r\n       branch.\r\n<\/code><\/pre>\n<p>\u7b80\u800c\u8a00\u4e4b<\/p>\n<ol>\u5c06\u5de5\u4f5c\u6811\u4e2d\u7684\u6587\u4ef6\u7d22\u5f15\uff0c\u7136\u540e\u5c06\u5176\u4e0e\u6307\u5b9a\u7684\u63d0\u4ea4\u7248\u672c\u5339\u914d\u3002<\/ol>\n<h1>\u5dee\u7570\u7684\u95dc\u9375\u8a5e de c\u00ed)<\/h1>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">reset<\/ul>\n<\/li>\n<\/ul>\n<p>\u904e\u53bb\u306e\u30b3\u30df\u30c3\u30c8\u304b\u3089\u53cd\u6620\u3055\u305b\u308b\u3068\u304d<br \/>\n\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u306e\u307f\u306e\u5909\u66f4<\/p>\n<p>checkout<\/p>\n<p>\u30ef\u30fc\u30af\u30c4\u30ea\u30fc\u307e\u3067\u5909\u66f4\u3059\u308b\u3002<br \/>\n\u30ef\u30fc\u30af\u30c4\u30ea\u30fc\u30fb\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u30fbHEAD\u306e3\u3064\u3092\u4e00\u81f4\u3055\u305b\u308b\u3002<br \/>\n\u904e\u53bb\u306e\u30b3\u30df\u30c3\u30c8\u304b\u3089\u306e\u72b6\u614b\u3092\u300c\u8a66\u3057\u305f\u3044\u300d\u3068\u304d\u3002<\/p>\n<p>\u30d6\u30e9\u30f3\u30c1\u306b\u5f71\u97ff\u3092\u4e0e\u3048\u305f\u304f\u306a\u3044\u3068\u304d\u3002<\/p>\n<h1>\u7528\u56fe\u8868\u603b\u7ed3<\/h1>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2dfc37434c4406c52f1f\/20-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2021-05-12 7.03.25.png\" \/><\/div>\n<p>\u6211\u89c9\u5f97\u53ea\u8981\u7406\u89e3\u5230\u8fd9\u4e00\u6b65\uff0c\u63a5\u4e0b\u6765\u5c31\u53ea\u6709\u5b9e\u8df5\u4e86\u3002<br \/>\n\u5982\u679c\u5c06\u6765\u5728\u5b9e\u9645\u5de5\u4f5c\u4e2d\u6709\u66f4\u65b0\u7684\u70b9\uff0c\u6211\u4f1a\u968f\u65f6\u8fdb\u884c\u3002<br \/>\n\u5982\u679c\u6709\u5728\u5b9e\u9645\u5de5\u4f5c\u4e2d\u4f7f\u7528\u8fc7\u7684\u4eba\uff0c\u6211\u5e0c\u671b\u80fd\u5f97\u5230\u5176\u4ed6\u5730\u65b9\u6216\u5efa\u8bae\u4e0a\u7684\u5e2e\u52a9\u3002<\/p>\n<p>\u4ee5\u4e0a\u3002 .)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4f60\u597d\u3002 \u524d\u51e0\u5929\u6211\u4e0d\u77e5\u9053\u8fd9\u4e24\u4e2a\u6807\u9898\u7684\u533a\u522b\uff0c\u6240\u4ee5\u8fdb\u884c\u4e86\u4e00\u4e9b\u8c03\u67e5\u3002 \u56e0\u4e3a\u6211\u4ece\u672a\u5728\u5b9e\u52a1\u4e2d\u4f7f\u7528\u8fc7\uff0c\u6240\u4ee5\u7406\u89e3\u53ef\u80fd\u6709\u4e9b\u8bef\u5dee\uff0c [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-37299","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>git reset\u548cgit checkout\u6709\u4ec0\u4e48\u4e0d\u540c\uff1f - Blog - Silicon Cloud<\/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:\/\/www.silicloud.com\/zh\/blog\/git-reset\u548cgit-checkout\u6709\u4ec0\u4e48\u4e0d\u540c\uff1f\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"git reset\u548cgit checkout\u6709\u4ec0\u4e48\u4e0d\u540c\uff1f\" \/>\n<meta property=\"og:description\" content=\"\u4f60\u597d\u3002 \u524d\u51e0\u5929\u6211\u4e0d\u77e5\u9053\u8fd9\u4e24\u4e2a\u6807\u9898\u7684\u533a\u522b\uff0c\u6240\u4ee5\u8fdb\u884c\u4e86\u4e00\u4e9b\u8c03\u67e5\u3002 \u56e0\u4e3a\u6211\u4ece\u672a\u5728\u5b9e\u52a1\u4e2d\u4f7f\u7528\u8fc7\uff0c\u6240\u4ee5\u7406\u89e3\u53ef\u80fd\u6709\u4e9b\u8bef\u5dee\uff0c [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/git-reset\u548cgit-checkout\u6709\u4ec0\u4e48\u4e0d\u540c\uff1f\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-13T06:20:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-30T04:30:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2dfc37434c4406c52f1f\/20-0.png\" \/>\n<meta name=\"author\" content=\"\u6587, \u7fd4\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6587, \u7fd4\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/git-reset%e5%92%8cgit-checkout%e6%9c%89%e4%bb%80%e4%b9%88%e4%b8%8d%e5%90%8c%ef%bc%9f\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/git-reset%e5%92%8cgit-checkout%e6%9c%89%e4%bb%80%e4%b9%88%e4%b8%8d%e5%90%8c%ef%bc%9f\/\",\"name\":\"git reset\u548cgit checkout\u6709\u4ec0\u4e48\u4e0d\u540c\uff1f - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-08-13T06:20:41+00:00\",\"dateModified\":\"2024-04-30T04:30:59+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/64d5cc7727fffbff2f9a2a8da1de3e5c\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/git-reset%e5%92%8cgit-checkout%e6%9c%89%e4%bb%80%e4%b9%88%e4%b8%8d%e5%90%8c%ef%bc%9f\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/git-reset%e5%92%8cgit-checkout%e6%9c%89%e4%bb%80%e4%b9%88%e4%b8%8d%e5%90%8c%ef%bc%9f\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/git-reset%e5%92%8cgit-checkout%e6%9c%89%e4%bb%80%e4%b9%88%e4%b8%8d%e5%90%8c%ef%bc%9f\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"git reset\u548cgit checkout\u6709\u4ec0\u4e48\u4e0d\u540c\uff1f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/64d5cc7727fffbff2f9a2a8da1de3e5c\",\"name\":\"\u6587, \u7fd4\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g\",\"caption\":\"\u6587, \u7fd4\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/wenxiang\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/git-reset%e5%92%8cgit-checkout%e6%9c%89%e4%bb%80%e4%b9%88%e4%b8%8d%e5%90%8c%ef%bc%9f\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"git reset\u548cgit checkout\u6709\u4ec0\u4e48\u4e0d\u540c\uff1f - Blog - Silicon Cloud","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:\/\/www.silicloud.com\/zh\/blog\/git-reset\u548cgit-checkout\u6709\u4ec0\u4e48\u4e0d\u540c\uff1f\/","og_locale":"zh_CN","og_type":"article","og_title":"git reset\u548cgit checkout\u6709\u4ec0\u4e48\u4e0d\u540c\uff1f","og_description":"\u4f60\u597d\u3002 \u524d\u51e0\u5929\u6211\u4e0d\u77e5\u9053\u8fd9\u4e24\u4e2a\u6807\u9898\u7684\u533a\u522b\uff0c\u6240\u4ee5\u8fdb\u884c\u4e86\u4e00\u4e9b\u8c03\u67e5\u3002 \u56e0\u4e3a\u6211\u4ece\u672a\u5728\u5b9e\u52a1\u4e2d\u4f7f\u7528\u8fc7\uff0c\u6240\u4ee5\u7406\u89e3\u53ef\u80fd\u6709\u4e9b\u8bef\u5dee\uff0c [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/git-reset\u548cgit-checkout\u6709\u4ec0\u4e48\u4e0d\u540c\uff1f\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-08-13T06:20:41+00:00","article_modified_time":"2024-04-30T04:30:59+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2dfc37434c4406c52f1f\/20-0.png"}],"author":"\u6587, \u7fd4","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u6587, \u7fd4","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/git-reset%e5%92%8cgit-checkout%e6%9c%89%e4%bb%80%e4%b9%88%e4%b8%8d%e5%90%8c%ef%bc%9f\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/git-reset%e5%92%8cgit-checkout%e6%9c%89%e4%bb%80%e4%b9%88%e4%b8%8d%e5%90%8c%ef%bc%9f\/","name":"git reset\u548cgit checkout\u6709\u4ec0\u4e48\u4e0d\u540c\uff1f - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-08-13T06:20:41+00:00","dateModified":"2024-04-30T04:30:59+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/64d5cc7727fffbff2f9a2a8da1de3e5c"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/git-reset%e5%92%8cgit-checkout%e6%9c%89%e4%bb%80%e4%b9%88%e4%b8%8d%e5%90%8c%ef%bc%9f\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/git-reset%e5%92%8cgit-checkout%e6%9c%89%e4%bb%80%e4%b9%88%e4%b8%8d%e5%90%8c%ef%bc%9f\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/git-reset%e5%92%8cgit-checkout%e6%9c%89%e4%bb%80%e4%b9%88%e4%b8%8d%e5%90%8c%ef%bc%9f\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"git reset\u548cgit checkout\u6709\u4ec0\u4e48\u4e0d\u540c\uff1f"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/64d5cc7727fffbff2f9a2a8da1de3e5c","name":"\u6587, \u7fd4","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g","caption":"\u6587, \u7fd4"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/wenxiang\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/git-reset%e5%92%8cgit-checkout%e6%9c%89%e4%bb%80%e4%b9%88%e4%b8%8d%e5%90%8c%ef%bc%9f\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/37299","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=37299"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/37299\/revisions"}],"predecessor-version":[{"id":91924,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/37299\/revisions\/91924"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=37299"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=37299"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=37299"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}