{"id":31,"date":"2016-01-20T20:28:29","date_gmt":"2016-01-20T11:28:29","guid":{"rendered":"http:\/\/ragtimeblues.net\/?p=31"},"modified":"2016-01-20T20:28:29","modified_gmt":"2016-01-20T11:28:29","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%863%e4%ba%8c%e5%9b%9e%e7%9b%ae%e3%81%ae%e3%82%b3%e3%83%9f%e3%83%83%e3%83%88","status":"publish","type":"post","link":"https:\/\/ragtimeblues.net\/?p=31","title":{"rendered":"Git\u4f7f\u3044\u306b\u306a\u308d\u3046\uff1a\u3072\u3068\u308a\u3067\u4f7f\u3046(3:\u4e8c\u56de\u76ee\u306e\u30b3\u30df\u30c3\u30c8)"},"content":{"rendered":"<p>Git\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u767b\u9332\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u5909\u66f4\u3057\u3066\u307f\u307e\u3059\u3002<br \/>\n~\/sandbox\/sample.txt \u306e\u5185\u5bb9\u3092<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nRagtimeblues\r\nhttps:\/\/ragtimeblues.net\/\r\n<\/pre>\n<p>\u306b\u5909\u3048\u307e\u3057\u305f\u3002<\/p>\n<p>\u72b6\u614b\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ git status\r\nOn branch master\r\nChanges not staged for commit:\r\n  (use &quot;git add &lt;file&gt;...&quot; to update what will be committed)\r\n  (use &quot;git checkout -- &lt;file&gt;...&quot; to discard changes in working directory)\r\n\r\n\tmodified:   sample.txt\r\n\r\nno changes added to commit (use &quot;git add&quot; and\/or &quot;git commit -a&quot;)\r\n<\/pre>\n<p>\u3068\u306a\u308a\u3001\u300c\u30d5\u30a1\u30a4\u30eb\u304c\u5909\u66f4\u3055\u308c\u305f\u3051\u3069\u30b3\u30df\u30c3\u30c8\u7528\u306b\u30b9\u30c6\u30fc\u30b8\u3055\u308c\u3066\u3044\u306a\u3044(\u5909\u66f4\u3055\u308c\u305f\u306e\u306fsample.txt)\u300d\u3068\u3044\u3046\u72b6\u614b\u3060\u3068\u3044\u3046\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3002\u300c\u30b3\u30df\u30c3\u30c8\u3055\u308c\u308b\u3082\u306e\u304c\u66f4\u65b0\u3055\u308c\u308b\u3088\u3046\u306b&#8221;git add &#8230; &#8220;\u3092\u4f7f\u3048\u300d\u3068\u3042\u308b\u306e\u3067git add\u3092\u5b9f\u884c\u3057\u305f\u3044\u3068\u3053\u308d\u3067\u3059\u304c\u4e00\u65e6\u5909\u66f4\u5185\u5bb9\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ git --no-pager diff\r\ndiff --git a\/sample.txt b\/sample.txt\r\nindex e797928..1e85400 100644\r\n--- a\/sample.txt\r\n+++ b\/sample.txt\r\n@@ -1 +1,2 @@\r\n Ragtimeblues\r\n+https:\/\/ragtimeblues.net\/\r\n<\/pre>\n<p>\u3067\u3001\u5909\u66f4\u5185\u5bb9\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f \u3002\u3067\u306f\u3001git add\u3057\u3066\u72b6\u614b\u3082\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ git add sample.txt \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\n<\/pre>\n<p>\u5909\u66f4\u304c\u30b3\u30df\u30c3\u30c8\u3055\u308c\u308b\u3082\u306e\u306e\u4e2d\u306b<br \/>\nmodified: sample.txt<br \/>\n\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u30b3\u30df\u30c3\u30c8\u3057\u307e\u3059\u3002\u30b3\u30df\u30c3\u30c8\u30e1\u30c3\u30bb\u30fc\u30b8\u306f<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nadd URL\r\n\r\nadd the URL of the Ragtimeblues\r\n<\/pre>\n<p>\u3068\u3057\u307e\u3059\u3002(2\u884c\u76ee\u304c\u7a7a\u884c\u306a\u306e\u306f\u7406\u7531\u304c\u3042\u308a\u307e\u3059\u304c\u5225\u306e\u6a5f\u4f1a\u306b\u8aac\u660e\u3057\u307e\u3059)<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ git commit\r\n&#x5B;master ee8831f] add URL\r\n 1 file changed, 1 insertion(+)\r\n<\/pre>\n<p>\u3068\u30b3\u30df\u30c3\u30c8\u5b8c\u4e86\u3067\u3059\u3002<br \/>\n\u4e8c\u56de\u76ee\u306e\u30b3\u30df\u30c3\u30c8\u304c\u7d42\u3063\u305f\u3068\u3053\u308d\u3067\u3001\u5c65\u6b74\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002\u5c65\u6b74\u306e\u78ba\u8a8d\u306fgit log\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\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>\u3067\u3001\u5c65\u6b74\u304c\u78ba\u8a8d\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Git\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u767b\u9332\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u3092\u5909\u66f4\u3057\u3066\u307f\u307e\u3059\u3002 ~\/sandbox\/sample.txt \u306e\u5185\u5bb9\u3092 Ragtimeblues https:\/\/ragtimeblues.net\/ \u306b\u5909\u3048\u307e\u3057\u305f\u3002 \u72b6\u614b\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059 &hellip; <a href=\"https:\/\/ragtimeblues.net\/?p=31\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;Git\u4f7f\u3044\u306b\u306a\u308d\u3046\uff1a\u3072\u3068\u308a\u3067\u4f7f\u3046(3:\u4e8c\u56de\u76ee\u306e\u30b3\u30df\u30c3\u30c8)&#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-31","post","type-post","status-publish","format-standard","hentry","category-git"],"_links":{"self":[{"href":"https:\/\/ragtimeblues.net\/index.php?rest_route=\/wp\/v2\/posts\/31","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=31"}],"version-history":[{"count":2,"href":"https:\/\/ragtimeblues.net\/index.php?rest_route=\/wp\/v2\/posts\/31\/revisions"}],"predecessor-version":[{"id":33,"href":"https:\/\/ragtimeblues.net\/index.php?rest_route=\/wp\/v2\/posts\/31\/revisions\/33"}],"wp:attachment":[{"href":"https:\/\/ragtimeblues.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=31"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ragtimeblues.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=31"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ragtimeblues.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=31"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}