{"id":44,"date":"2016-02-13T18:17:07","date_gmt":"2016-02-13T09:17:07","guid":{"rendered":"http:\/\/ragtimeblues.net\/?p=44"},"modified":"2016-02-13T18:17:07","modified_gmt":"2016-02-13T09:17:07","slug":"git%e4%bd%bf%e3%81%84%e3%81%ab%e3%81%aa%e3%82%8d%e3%81%86%ef%bc%9a%e3%81%b2%e3%81%a8%e3%82%8a%e3%81%a7%e4%bd%bf%e3%81%866%e4%b8%80%e3%81%a4%e5%89%8d%e3%81%ae%e3%82%b3%e3%83%9f%e3%83%83%e3%83%88","status":"publish","type":"post","link":"https:\/\/ragtimeblues.net\/?p=44","title":{"rendered":"Git\u4f7f\u3044\u306b\u306a\u308d\u3046\uff1a\u3072\u3068\u308a\u3067\u4f7f\u3046(6:\u4e00\u3064\u524d\u306e\u30b3\u30df\u30c3\u30c8\u307e\u3067HEAD\u306e\u53c2\u7167\u306e\u307f\u3092\u623b\u3059)"},"content":{"rendered":"<p>\u3055\u3066\u3001<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ git reset --hard HEAD^\r\n<\/pre>\n<p>\u3067\u306f\u3001\u30ef\u30fc\u30ad\u30f3\u30b0\u30c4\u30ea\u30fc\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u5171\u306b\u4e00\u3064\u524d\u306e\u30b3\u30df\u30c3\u30c8\u306b\u623b\u308a\u307e\u3057\u305f\u304c\u3001<br \/>\ncommit\u3060\u3051\u3092\u623b\u3059\u5834\u5408\u306f<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ git reset --soft HEAD^\r\n<\/pre>\n<p>\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ git status\r\nOn branch master\r\nnothing to commit, working directory clean\r\n$ git --no-pager log \r\ncommit ee8831f07fcd5007816ef6e75682b826659a79cd\r\nAuthor: tomohiro &lt;tomohiro@example.com&gt;\r\nDate:   Fri Jan 1 20:51:25 2016 +0900\r\n\r\n    add URL\r\n    \r\n    add the URL of the Ragtimeblues\r\n\r\ncommit ab374c5f64e3de33b079b9e013ac2cec7830935d\r\nAuthor: tomohiro &lt;tomohiro@example.com&gt;\r\nDate:   Fri Jan 1 16:57:09 2016 +0900\r\n\r\n    first commit\r\n<\/pre>\n<p>\u3068\u3044\u3046\u72b6\u614b\u3067\u3001<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ git reset --soft HEAD^\r\n<\/pre>\n<p>\u3092\u5b9f\u884c\u3057\u3066\u307f\u308b\u3068\u3001<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ git status\r\nOn branch master\r\nChanges to be committed:\r\n  (use &quot;git reset HEAD &lt;file&gt;...&quot; to unstage)\r\n\r\n\tmodified:   sample.txt\r\n\r\ntomohiro@imola:~\/sandbox.test$ git --no-pager log\r\ncommit ab374c5f64e3de33b079b9e013ac2cec7830935d\r\nAuthor: tomohiro &lt;tomohiro@example.com&gt;\r\nDate:   Fri Jan 1 16:57:09 2016 +0900\r\n\r\n    first commit\r\n<\/pre>\n<p>\u3068\u306a\u308a\u3001\u30b3\u30df\u30c3\u30c8\u306e\u307f\u304c\u4e00\u3064\u524d\u306b\u623b\u305b\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3055\u3066\u3001 $ git reset &#8211;hard HEAD^ \u3067\u306f\u3001\u30ef\u30fc\u30ad\u30f3\u30b0\u30c4\u30ea\u30fc\u3001\u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u5171\u306b\u4e00\u3064\u524d\u306e\u30b3\u30df\u30c3\u30c8\u306b\u623b\u308a\u307e\u3057\u305f\u304c\u3001 commit\u3060\u3051\u3092\u623b\u3059\u5834\u5408\u306f $ git reset &#8211;soft HEAD^ \u3092\u4f7f\u3044\u307e &hellip; <a href=\"https:\/\/ragtimeblues.net\/?p=44\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Git\u4f7f\u3044\u306b\u306a\u308d\u3046\uff1a\u3072\u3068\u308a\u3067\u4f7f\u3046(6:\u4e00\u3064\u524d\u306e\u30b3\u30df\u30c3\u30c8\u307e\u3067HEAD\u306e\u53c2\u7167\u306e\u307f\u3092\u623b\u3059)&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-44","post","type-post","status-publish","format-standard","hentry","category-git"],"_links":{"self":[{"href":"https:\/\/ragtimeblues.net\/index.php?rest_route=\/wp\/v2\/posts\/44","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ragtimeblues.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ragtimeblues.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ragtimeblues.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ragtimeblues.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=44"}],"version-history":[{"count":1,"href":"https:\/\/ragtimeblues.net\/index.php?rest_route=\/wp\/v2\/posts\/44\/revisions"}],"predecessor-version":[{"id":45,"href":"https:\/\/ragtimeblues.net\/index.php?rest_route=\/wp\/v2\/posts\/44\/revisions\/45"}],"wp:attachment":[{"href":"https:\/\/ragtimeblues.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=44"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ragtimeblues.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=44"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ragtimeblues.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=44"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}