{"id":6940,"date":"2018-06-05T17:05:55","date_gmt":"2018-06-05T08:05:55","guid":{"rendered":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=6940"},"modified":"2018-06-05T17:05:55","modified_gmt":"2018-06-05T08:05:55","slug":"%e3%83%ab%e3%83%bc%e3%83%88%e3%82%b3%e3%83%9f%e3%83%83%e3%83%88%e3%82%92%e8%a4%87%e6%95%b0%e6%8c%81%e3%81%a4-git-%e3%83%aa%e3%83%9d%e3%82%b8%e3%83%88%e3%83%aa","status":"publish","type":"post","link":"http:\/\/umezawa.dyndns.info\/wordpress\/?p=6940","title":{"rendered":"\u30eb\u30fc\u30c8\u30b3\u30df\u30c3\u30c8\u3092\u8907\u6570\u6301\u3064 git \u30ea\u30dd\u30b8\u30c8\u30ea"},"content":{"rendered":"<p>\u666e\u901a\u306b git \u3092\u4f7f\u3063\u3066\u3044\u308c\u3070\u3001\u30eb\u30fc\u30c8\u30b3\u30df\u30c3\u30c8\u306f1\u3064\u3057\u304b\u306a\u3044\u3001\u3064\u307e\u308a\u3001\u4efb\u610f\u306e\u30b3\u30df\u30c3\u30c8\u306e\u89aa\u3092\u305f\u3069\u3063\u3066\u3044\u304f\u3068\u3042\u308b\u5358\u4e00\u306e\u30b3\u30df\u30c3\u30c8\u306b\u5230\u9054\u3059\u308b\u308f\u3051\u3067\u3059\u304c\u3001\u7121\u95a2\u4fc2\u306a\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u30d6\u30e9\u30f3\u30c1\u3092\u3092 push \u3059\u308b\u3068\u30eb\u30fc\u30c8\u30b3\u30df\u30c3\u30c8\u304c\u8907\u6570\u3042\u308b\u72b6\u614b\u3092\u4f5c\u308c\u307e\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<blockquote>\n<pre>\r\n[umezawaa@umezawa-dev:pts\/7 git-multi-root]$ mkdir a\r\n[umezawaa@umezawa-dev:pts\/7 git-multi-root]$ cd a\r\n[umezawaa@umezawa-dev:pts\/7 a]$ git init\r\nInitialized empty Git repository in \/home\/umezawaa\/git-multi-root\/a\/.git\/\r\n[umezawaa@umezawa-dev:pts\/7 a]$ touch hoge.txt\r\n[umezawaa@umezawa-dev:pts\/7 a]$ git add hoge.txt\r\n[umezawaa@umezawa-dev:pts\/7 a]$ git commit -m hoge\r\n[master (root-commit) 3e7d74a] hoge\r\n 0 files changed, 0 insertions(+), 0 deletions(-)\r\n create mode 100644 hoge.txt\r\n[umezawaa@umezawa-dev:pts\/7 a]$ cd ..\/\r\n[umezawaa@umezawa-dev:pts\/7 git-multi-root]$ mkdir b\r\n[umezawaa@umezawa-dev:pts\/7 git-multi-root]$ cd b\r\n[umezawaa@umezawa-dev:pts\/7 b]$ git init\r\nInitialized empty Git repository in \/home\/umezawaa\/git-multi-root\/b\/.git\/\r\n[umezawaa@umezawa-dev:pts\/7 b]$ touch fuga.txt\r\n[umezawaa@umezawa-dev:pts\/7 b]$ git add fuga.txt\r\n[umezawaa@umezawa-dev:pts\/7 b]$ git commit -m fuga\r\n[master (root-commit) f196c53] fuga\r\n 0 files changed, 0 insertions(+), 0 deletions(-)\r\n create mode 100644 fuga.txt\r\n[umezawaa@umezawa-dev:pts\/7 b]$ git remote add a ..\/a\r\n[umezawaa@umezawa-dev:pts\/7 b]$ git branch b-master\r\n[umezawaa@umezawa-dev:pts\/7 b]$ git push a b-master\r\nCounting objects: 3, done.\r\nWriting objects: 100% (3\/3), 217 bytes, done.\r\nTotal 3 (delta 0), reused 0 (delta 0)\r\nUnpacking objects: 100% (3\/3), done.\r\nTo ..\/a\r\n * [new branch]      b-master -&gt; b-master\r\n[umezawaa@umezawa-dev:pts\/7 b]$ cd ..\/a\r\n[umezawaa@umezawa-dev:pts\/7 a]$ git branch\r\n  b-master\r\n* master\r\n[umezawaa@umezawa-dev:pts\/7 a]$ git log --format=oneline\r\n[umezawaa@umezawa-dev:pts\/7 a]$ git log --format=oneline | cat\r\n3e7d74af94bcd251466a842a415456b98b74c28c hoge\r\n[umezawaa@umezawa-dev:pts\/7 a]$ git log --format=oneline b-master | cat\r\nf196c539a02b29443c2f9449a3f8b3c114dcf733 fuga\r\n<\/pre>\n<\/blockquote>\n<p>\u3044\u3084\u307e\u3042\u3001\u3060\u304b\u3089\u3069\u3046\u3057\u305f\u3063\u3066\u8a71\u306a\u3093\u3067\u3059\u304c\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u666e\u901a\u306b git \u3092\u4f7f\u3063\u3066\u3044\u308c\u3070\u3001\u30eb\u30fc\u30c8\u30b3\u30df\u30c3\u30c8\u306f1\u3064\u3057\u304b\u306a\u3044\u3001\u3064\u307e\u308a\u3001\u4efb\u610f\u306e\u30b3\u30df\u30c3\u30c8\u306e\u89aa\u3092\u305f\u3069\u3063\u3066\u3044\u304f\u3068\u3042\u308b\u5358\u4e00\u306e\u30b3\u30df\u30c3\u30c8\u306b\u5230\u9054\u3059\u308b\u308f\u3051\u3067\u3059\u304c\u3001\u7121\u95a2\u4fc2\u306a\u30ea\u30dd\u30b8\u30c8\u30ea\u304b\u3089\u30d6\u30e9\u30f3\u30c1\u3092\u3092 push \u3059\u308b\u3068\u30eb\u30fc\u30c8\u30b3\u30df\u30c3\u30c8\u304c\u8907\u6570\u3042\u308b [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[],"class_list":["post-6940","post","type-post","status-publish","format-standard","hentry","category-technology"],"_links":{"self":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/6940","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6940"}],"version-history":[{"count":1,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/6940\/revisions"}],"predecessor-version":[{"id":6941,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/6940\/revisions\/6941"}],"wp:attachment":[{"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6940"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6940"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/umezawa.dyndns.info\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}