{"id":272,"date":"2010-12-18T15:45:29","date_gmt":"2010-12-18T06:45:29","guid":{"rendered":"http:\/\/www.typea.info\/blog\/index.php\/2010\/12\/18\/_git\/"},"modified":"2010-12-18T15:45:29","modified_gmt":"2010-12-18T06:45:29","slug":"_git","status":"publish","type":"post","link":"https:\/\/www.typea.info\/blog\/index.php\/2010\/12\/18\/_git\/","title":{"rendered":"\u5165\u9580 git \u5165\u9580"},"content":{"rendered":"<p><iframe src=\"http:\/\/rcm-jp.amazon.co.jp\/e\/cm?lt1=_blank&amp;bc1=FFFFFF&amp;IS2=1&amp;bg1=FFFFFF&amp;fc1=000000&amp;lc1=0000FF&amp;t=typea09-22&amp;o=9&amp;p=8&amp;l=as1&amp;m=amazon&amp;f=ifr&amp;md=1X69VDGQCMF7Z30FM082&amp;asins=427406767X\" style=\"width:120px;height:240px;\" scrolling=\"no\" marginwidth=\"0\" marginheight=\"0\" frameborder=\"0\"><\/iframe><\/p>\n<p><a href=\"http:\/\/www8.atwiki.jp\/git_jp\/pub\/Documentation.ja\/user-manual.html\">Git \u30e6\u30fc\u30b6\u30de\u30cb\u30e5\u30a2\u30eb (\u30d0\u30fc\u30b8\u30e7\u30f3 1.5.3 \u4ee5\u964d\u7528)<\/a> \u3092\u8aad\u3093\u3067\u3001\u5168\u4f53\u3092\u628a\u63e1\u3059\u308b\u306e\u306f\u5c11\u3057\u304d\u3064\u3044\u306e\u3067\u3001\u5168\u4f53\u50cf\u3092\u628a\u63e1\u3057\u305f\u304f\u3066\u3001<a href=\"http:\/\/www.amazon.co.jp\/gp\/product\/427406767X?ie=UTF8&amp;tag=typea09-22&amp;linkCode=as2&amp;camp=247&amp;creative=7399&amp;creativeASIN=427406767X\">\u5165\u9580git<\/a><img loading=\"lazy\" decoding=\"async\" style=\"border-bottom-style: none !important; border-right-style: none !important; margin: 0px; border-top-style: none !important; border-left-style: none !important\" border=\"0\" alt=\"\" src=\"http:\/\/www.assoc-amazon.jp\/e\/ir?t=typea09-22&amp;l=as2&amp;o=9&amp;a=427406767X\" width=\"1\" height=\"1\" \/> \u3092\u8cfc\u5165\u3002<\/p>\n<p>\u6280\u8853\u7cfb\u306e\u5165\u9580\u66f8\u306f\u3001\u3044\u304b\u306b\u6982\u5ff5\u304c\u308f\u304b\u308a\u3084\u3059\u304f\u66f8\u304b\u308c\u3066\u3044\u308b\u304b\u304c\u91cd\u8981\u3060\u3068\u601d\u3046\u304c\u3001\u6982\u5ff5\u7684\u306a\u8aac\u660e\u3001\u57fa\u672c\u7684\u306a\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3068\u3044\u3046\u610f\u5473\u3067\u3001\u672c\u66f8\u306f\u5165\u9580\u66f8\u3068\u3057\u3066\u306f\u308f\u304b\u308a\u3084\u3059\u3044\u826f\u66f8\u3060\u3068\u601d\u3046\u3002<\/p>\n<p>\u3067\u3001\u305d\u3093\u306a\u308f\u304b\u308a\u3084\u3059\u3044\u3001<a href=\"http:\/\/www.amazon.co.jp\/gp\/product\/427406767X?ie=UTF8&amp;tag=typea09-22&amp;linkCode=as2&amp;camp=247&amp;creative=7399&amp;creativeASIN=427406767X\">\u5165\u9580git<\/a><img loading=\"lazy\" decoding=\"async\" style=\"border-bottom-style: none !important; border-right-style: none !important; margin: 0px; border-top-style: none !important; border-left-style: none !important\" border=\"0\" alt=\"\" src=\"http:\/\/www.assoc-amazon.jp\/e\/ir?t=typea09-22&amp;l=as2&amp;o=9&amp;a=427406767X\" width=\"1\" height=\"1\" \/> \u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u306e\u3055\u3089\u306b\u8981\u70b9\u3092\u4ee5\u4e0b\u306b\u30e1\u30e2\u3002<\/p>\n<h2><\/h2>\n<h2>\u5206\u6563\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0(DVCS : Distributed Version Control System)<\/h2>\n<h3><\/h3>\n<h3>\u30ea\u30dd\u30b8\u30c8\u30ea<\/h3>\n<p>Git \u306f\u5f93\u6765\u306e\u96c6\u4e2d\u578b \u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0(VCS : Version Contorol System) \u3068\u306f\u3001\u7570\u306a\u308a\u3001\u5206\u6563\u578b\u3060\u3068\u3044\u308f\u308c\u308b\u304c\u3001\u3067\u306f\u5177\u4f53\u7684\u306b\u4f55\u304c\u5206\u6563\u306a\u306e\u304b\uff1f\u3068\u8003\u3048\u3066\u3044\u305f\u304c\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u304c\u5206\u6563\u3057\u3066\u3044\u308b\u3068\u3044\u3046\u3053\u3068\u3089\u3057\u3044\u3002<\/p>\n<p>\u5206\u6563\u3057\u3066\u3044\u308b\u3068\u3044\u3063\u3066\u3082\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u65ad\u7247\u3092\u6240\u6301\u3057\u3066\u3044\u308b\u306e\u3067\u306f\u306a\u304f\u3066\u3001<u>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u3059\u3079\u3066\u306e\u5c65\u6b74\u3092\u4fdd\u6301\u3057\u305f\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u30e6\u30fc\u30b6\u30fc\u304c\u3001\u5404\u81ea\u3067\u6301\u3064\u3068\u3044\u3046\u610f\u5473\u3067\u5206\u6563\u3002<\/u><\/p>\n<h3>\u4f5c\u696d\u30c4\u30ea\u30fc<\/h3>\n<p>\u69d8\u3005\u306a\u30d5\u30a1\u30a4\u30eb\u306b\u5909\u66f4\u3092\u52a0\u3048\u308b\u5834\u6240\u304c\u3001\u4f5c\u696d\u30c4\u30ea\u30fc\u3002<\/p>\n<p>\u96c6\u4e2d\u578b\u3067\u306f\u3001&#8221;\u3042\u3061\u3089\u5074&#8221; \u306e\u30b5\u30fc\u30d0\u30fc\u306b\u3042\u308a\u3001\u5206\u6563\u578b(Git)\u3067\u306f\u3001&#8221;\u3053\u3061\u3089\u5074&#8221; \u306e\u81ea\u5206\u306e\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf \u306b\u3042\u308b\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/git_ADDD\/git01.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"git01\" border=\"0\" alt=\"git01\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/git_ADDD\/git01_thumb.jpg\" width=\"245\" height=\"258\" \/><\/a> <\/p>\n<h2><\/h2>\n<h2>Git \u306e\u4f7f\u3044\u65b9<\/h2>\n<h3>Git \u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7<\/h3>\n<ul>\n<li><a href=\"https:\/\/www.typea.info\/blog\/index.php\/2010\/12\/08\/git_linuxcentos\">Linux \u3078\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5<\/a> <\/li>\n<li><a href=\"https:\/\/www.typea.info\/blog\/index.php\/2010\/12\/09\/git_windows_cygwin\">Windows \u3078\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5(Cygwin \u3092\u5229\u7528)<\/a> <\/li>\n<\/ul>\n<p>Cygwin \u3092\u4f7f\u3046\u306e\u3067\u306f\u306a\u304f\u3001Windows \u30cd\u30a4\u30c6\u30a3\u30d6\u3078Git\u3092\u79fb\u690d\u3057\u305f <a href=\"http:\/\/code.google.com\/p\/msysgit\/\">Git on MSys<\/a> \u3082\u3042\u308b<\/p>\n<h3>Git \u3092\u4f7f\u3046<\/h3>\n<p>\u5927\u307e\u304b\u306a\u4f7f\u3044\u65b9\u306e\u5168\u4f53\u50cf\u306f\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u611f\u3058\u304b\u3002<\/p>\n<p>\u81ea\u5206\u306e\u8a8d\u8b58\u3092\u56f3\u306b\u3057\u305f\u3060\u3051\u306a\u306e\u3067\u3001\u9593\u9055\u3063\u3066\u305f\u3089\u3054\u3081\u3093\u306a\u3055\u3044\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/git_ADDD\/git02.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"git02\" border=\"0\" alt=\"git02\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/git_ADDD\/git02_thumb.jpg\" width=\"379\" height=\"354\" \/><\/a> <\/p>\n<p>\u3053\u306e\u5168\u4f53\u50cf\u3092\u5143\u306b\u3001\u5177\u4f53\u7684\u306a\u624b\u9806\u3092\u4ee5\u4e0b\u306b\u307e\u3068\u3081\u3002\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u8ffd\u3063\u305f\u8a73\u7d30\u306f<a href=\"http:\/\/typea.info\/tips\/wiki.cgi?page=Git+%A5%C1%A5%E5%A1%BC%A5%C8%A5%EA%A5%A2%A5%EB#p7\">\u3053\u3061\u3089<\/a><\/p>\n<h5><\/h5>\n<h6><\/h6>\n<h3>\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u4f5c\u6210 (git init)<\/h3>\n<ul>\n<li>\u30ea\u30dd\u30b8\u30c8\u30ea\u3068\u4f5c\u696d\u30c4\u30ea\u30fc\u306f\u3069\u3061\u3089\u3082.git \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u5b58\u5728 <\/li>\n<li>\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u4f5c\u308b\u306b\u306f\u3001\u307e\u305a\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30b3\u30fc\u30c9\u3092\u683c\u7d0d\u3057\u305f\u3044\u5834\u6240\u3092\u6c7a\u3081(\u4f8b\u3068\u3057\u3066\u3001mysite \u3068\u3059\u308b)\u3001git init \u3068\u3059\u308b <\/li>\n<\/ul>\n<pre class=\"prettyprint linenums\">$ mkdir mysite\r\n$ cd mysite\r\n$ git init<\/pre>\n<h3>\u30ea\u30dd\u30b8\u30c8\u30ea\u3078\u306e\u8ffd\u52a0(git add)<\/h3>\n<ul>\n<li>\u4f8b\u3048\u3070\u3001\u30d5\u30a1\u30a4\u30eb(index.html) \u3092 \u30ea\u30dd\u30b8\u30c8\u30ea\u3078\u8ffd\u52a0\u3059\u308b\u306b\u306f\u3001git add \u30d5\u30a1\u30a4\u30eb\u540d\u3068\u3059\u308b <\/li>\n<\/ul>\n<pre class=\"prettyprint linenums\">$ git add index.html <\/pre>\n<h3>\u30b3\u30df\u30c3\u30c8(git commit)<\/h3>\n<ul>\n<li>\u30b3\u30df\u30c3\u30c8\u306f\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u683c\u7d0d\u3055\u308c\u308b\uff11\u30641\u3064\u306e\u5c65\u6b74 <\/li>\n<li>\u30b3\u30df\u30c3\u30c8\u3067\u306f\u3001\u30e6\u30fc\u30b6\u30fc\u540d\u3001\u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9\u3001\u30b3\u30df\u30c3\u30c8\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u683c\u7d0d\u3055\u308c\u308b <\/li>\n<\/ul>\n<pre class=\"prettyprint linenums\">$ git commit -m \"add in hello world HTML\"<\/pre>\n<h3>\u30b3\u30df\u30c3\u30c8\u306e\u78ba\u8a8d(git log)<\/h3>\n<ul>\n<li>\u30b3\u30df\u30c3\u30c8\u306e\u78ba\u8a8d <\/li>\n<li>\u5148\u982d\u884c\u306f\u30b3\u30df\u30c3\u30c8\u540d\u3001SHA-1\u306e\u30cf\u30c3\u30b7\u30e5\u5024\u306b\u3088\u308a\u30e6\u30cb\u30fc\u30af\u306b\u8b58\u5225 <\/li>\n<\/ul>\n<pre class=\"prettyprint linenums\">$ git log\r\ncommit 6b4f2e70a4e1950083000148ec8b625be8a86eee\r\nAuthor: YAGI Hiroto <piroto @ryujyu.typea.info=\"\">\r\nDate:   Mon Dec 6 22:10:38 2010 +0900\r\n\r\n    add in hello world HTML<\/piroto><\/pre>\n<h3>\u4f5c\u696d\u30c4\u30ea\u30fc\u3092 Git \u304c\u3069\u3046\u8a8d\u8b58\u3057\u3066\u3044\u308b\u304b\u3092\u78ba\u8a8d (git status)<\/h3>\n<ul>\n<li>\u4f5c\u696d\u30c4\u30ea\u30fc\u3092<a href=\"http:\/\/typea.info\/tips\/wiki.cgi?page=Git\">Git<\/a>\u304c\u3069\u3046\u8a8d\u8b58\u3057\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3059\u308b <\/li>\n<li>index.html \u3092\u7de8\u96c6\u3057\u3001git status \u3092\u884c\u3046\u3068\u3001Changed but not updated (\u5909\u66f4\u3055\u308c\u3066\u3044\u308b\u304c\u66f4\u65b0\u3055\u308c\u3066\u3044\u306a\u3044) \u306b\u5206\u985e\u3055\u308c\u308b <\/li>\n<\/ul>\n<pre class=\"prettyprint linenums\">$ git status\r\n# On branch master\r\n# Changed but not updated:\r\n#   (use \"git add <file>...\" to update what will be committed)\r\n#   (use \"git checkout -- <file>...\" to discard changes in working directory)\r\n#\r\n#       modified:   index.html\r\n#\r\nno changes added to commit (use \"git add\" and\/or \"git commit -a\")<\/file><\/file><\/pre>\n<h3>\u5909\u66f4\u3092\u30b9\u30c6\u30fc\u30b8(\u518d\u5ea6 git add)\u3059\u308b<\/h3>\n<ul>\n<li>\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u30a8\u30ea\u30a2\u306f\u3001\u4f5c\u696d\u30c4\u30ea\u30fc\u3068\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u9593\u306b\u3042\u308b\u30d0\u30c3\u30d5\u30a1\u3002\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u30b3\u30df\u30c3\u30c8\u3057\u305f\u3044\u5909\u66f4\u3060\u3051\u3092\u30a2\u30ec\u30f3\u30b8\u3002 <\/li>\n<li>Change to be commitd (\u30b3\u30df\u30c3\u30c8\u3055\u308c\u308b\u5909\u66f4)\u306b\u72b6\u614b\u304c\u5909\u308f\u308b <\/li>\n<\/ul>\n<pre class=\"prettyprint linenums\">$ git add index.html \r\n$ git status\r\n# On branch master\r\n# Changes to be committed:\r\n#   (use \"git reset HEAD <file>...\" to unstage)\r\n#\r\n#       modified:   index.html\r\n#<\/file><\/pre>\n<h3>\u30d6\u30e9\u30f3\u30c1\u3092\u4f5c\u308b git branch<\/h3>\n<ul>\n<li>git branch [\u4f5c\u308a\u305f\u3044\u30d6\u30e9\u30f3\u30c1\u306e\u540d\u524d] [\u5206\u5c90\u5143\u306b\u3057\u305f\u3044\u30d6\u30e9\u30f3\u30c1\u306e\u540d\u524d] <\/li>\n<li>master \u306f Git\u3067\u306e\u30c7\u30d5\u30a9\u30eb\u30c8\u30d6\u30e9\u30f3\u30c1\u540d <\/li>\n<\/ul>\n<pre class=\"prettyprint linenums\">$ git branch RB_1.0 master<\/pre>\n<h3>\u30d6\u30e9\u30f3\u30c1\u3092\u5207\u308a\u66ff\u3048\u308b(git checkout)<\/h3>\n<pre class=\"prettyprint linenums\">$ git checkout RB_1.0<\/pre>\n<h3>\u30bf\u30b0\u3092\u6253\u3064(git tag)<\/h3>\n<ul>\n<li>git [\u30bf\u30b0\u540d] [\u30bf\u30b0\u3092\u6253\u3064\u30dd\u30a4\u30f3\u30c8] <\/li>\n<\/ul>\n<pre class=\"prettyprint linenums\">$ git tag 1.0 RB_1.0 <\/pre>\n<ul>\n<li>\u30bf\u30b0\u306e\u4e00\u89a7 <\/li>\n<\/ul>\n<pre class=\"prettyprint linenums\">$ git tag<\/pre>\n<h3>\u30ea\u30d9\u30fc\u30b9(git rebase)<\/h3>\n<p>\u4f8b\u3048\u3070\u3001\u30d6\u30e9\u30f3\u30c1\u3092\u5207\u3063\u3066\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u72b6\u6cc1\u3001\u300c\u73fe\u6642\u70b9\u3067\u3001\u30d6\u30e9\u30f3\u30c1\u304c\uff12\u3064\u3042\u308a\u3001\u305d\u308c\u305e\u308c\u304c\u95a2\u77e5\u3057\u3066\u3044\u306a\u3044\u30b3\u30df\u30c3\u30c8\u3092\u6301\u3063\u3066\u3044\u308b\u3002RB_1.0(\u30ea\u30ea\u30fc\u30b91.0) \u306b\u5909\u66f4\u304c\u306a\u3055\u308c\u305f\u3053\u3068\u3092\u3001master \u30d6\u30e9\u30f3\u30c1(\u30ea\u30ea\u30fc\u30b92.0\u5411\u3051\u306e\u4f5c\u696d)\u306b\u3082\u77e5\u3089\u305b\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002\u300d\u306b\u306a\u3063\u305f\u5834\u5408\u3001\u30e9\u30f3\u30c1\u304b\u3089\u5909\u66f4\u3092\u53d6\u308a\u51fa\u3057\u3066\u304d\u3066\u3001\u5225\u306e\u30d6\u30e9\u30f3\u30c1\u306e\u5148\u982d\u3067\u518d\u751f\u3059\u308b\u306e\u304c\u30ea\u30d9\u30fc\u30b9(rebase)<\/p>\n<h4>\u3053\u306e\u72b6\u614b\u3092\u30ea\u30d9\u30fc\u30b9\u3059\u308b\u3053\u3068\u3067\u3001<\/h4>\n<h4><\/h4>\n<h3><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/git_ADDD\/git03.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"git03\" border=\"0\" alt=\"git03\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/git_ADDD\/git03_thumb.jpg\" width=\"294\" height=\"188\" \/><\/a> <\/h3>\n<p>\u3053\u306e\u72b6\u614b\u306b\u3059\u308b<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/git_ADDD\/git04.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"git04\" border=\"0\" alt=\"git04\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/git_ADDD\/git04_thumb.jpg\" width=\"294\" height=\"153\" \/><\/a> <\/p>\n<\/p>\n<p>\u5148\u305a\u306f\u3001\u30d6\u30e9\u30f3\u30c1\u3092\u5207\u308a\u66ff\u3048\u3066 master \u30d6\u30e9\u30f3\u30c1\u306b\u623b\u308b<\/p>\n<pre class=\"prettyprint linenums\">$ git checkout master\r\nSwitched to branch 'master'<\/pre>\n<p>rebase \u30b3\u30de\u30f3\u30c9\u306e\u5b9f\u884c<\/p>\n<pre class=\"prettyprint linenums\"> git rebase RB_1.0\r\nCurrent branch master is up to date.<\/pre>\n<h3>\u30d6\u30e9\u30f3\u30c1\u306e\u524a\u9664 (git branch -d)<\/h3>\n<p>\u30bf\u30b0\u3092\u3064\u3051\u305f\u30d6\u30e9\u30f3\u30c1\u3092\u524a\u9664\u3057\u3066\u3082\u3001\u30bf\u30b0\u3092\u6307\u5b9a\u3057\u3066\u30d6\u30e9\u30f3\u30c1\u3092\u4f5c\u6210\u3067\u304d\u308b\u305f\u3081\u554f\u984c\u306a\u3044<\/p>\n<pre class=\"prettyprint linenums\">$ git branch -d RB_1.0<\/pre>\n<h3>\u30bf\u30b0\u304b\u3089\u30d6\u30e9\u30f3\u30c1\u3092\u4f5c\u308b (git branch)<\/h3>\n<ul>\n<li>\u30bf\u30b0 1.0 \u304b\u3089\u3001 RB_1.0.1 \u3092\u30d6\u30e9\u30f3\u30c1 <\/li>\n<\/ul>\n<pre class=\"prettyprint linenums\">$ git branch RB_1.0.1 1.0<\/pre>\n<h3>\u30a2\u30fc\u30ab\u30a4\u30d6\u3092\u4f5c\u6210(tar)<\/h3>\n<pre class=\"prettyprint linenums\">$ git archive --format=tar --prefix=mysite-1.0\/ 1.0 | gzip &gt; mysite-1.0.tar.gz\r\n$ ls\r\nindex.html  mysite-1.0.tar.gz<\/pre>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"2\">\n<tbody>\n<tr>\n<td valign=\"top\">\u30d1\u30e9\u30e1\u30fc\u30bf<\/td>\n<td valign=\"top\">\u5185\u5bb9<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">&#8211;format=tar<\/td>\n<td valign=\"top\">tar\u3092\u51fa\u529b\u3059\u308b\u3053\u3068\u3092\u4f1d\u3048\u3066\u3044\u308b<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">&#8211;prefix=mysite-1.0\/<\/td>\n<td valign=\"top\">\u5168\u4f53\u3092mysite-1.0\/ \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u4e0b\u306b\u7f6e\u304f\u3088\u3046\u306b\u6307\u5b9a<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">1.0<\/td>\n<td valign=\"top\">\u4f7f\u7528\u3059\u308b\u30bf\u30b0\u3092\u6307\u5b9a\u3057\u3066\u3044\u308b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>&nbsp;<\/h3>\n<h3>\u30a2\u30fc\u30ab\u30a4\u30d6\u3092\u4f5c\u6210(zip)<\/h3>\n<pre class=\"prettyprint linenums\">$ git archive --format=zip --prefix=mysite-1.0\/ 1.0 &gt; mysite-1.0.zip\r\n$ ls\r\nindex.html  mysite-1.0.zip<\/pre>\n<h3>\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30af\u30ed\u30fc\u30f3\u3092\u4f5c\u308b(git clone)<\/h3>\n<ul>\n<li>\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u4f5c\u696d\u3092\u59cb\u3081\u308b\u305f\u3081\u306b\u306f\u3001git clone \u3067\u30af\u30ed\u30fc\u30f3\u3092\u4f5c\u6210\u3059\u308b <\/li>\n<li>\u30af\u30ed\u30fc\u30f3\u3068\u306f\u3001\u4f5c\u696d\u3092\u59cb\u3081\u308b\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u5b8c\u5168\u306a\u30b3\u30d4\u30fc <\/li>\n<\/ul>\n<p>\u4ee5\u4e0b\u306e\u30d7\u30ed\u30c8\u30b3\u30eb<\/p>\n<table border=\"1\" cellspacing=\"0\" cellpadding=\"2\">\n<tbody>\n<tr>\n<td valign=\"top\">\u30d7\u30ed\u30c8\u30b3\u30eb<\/td>\n<td valign=\"top\">\u66f8\u5f0f<\/td>\n<td valign=\"top\">\u7279\u5fb4<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">SSH<\/td>\n<td valign=\"top\">\n<pre>ssh:\/\/[user]@[server][\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30d1\u30b9] <\/pre>\n<\/td>\n<td valign=\"top\">\n<ul>\n<li>\u30c9\u30e1\u30a4\u30f3\u540d\u3068\u3001\u30e6\u30fc\u30b6\u30fc\u540d\u3092\u4ed8\u52a0\u3059\u308b\u4ee5\u5916\u306f\u3001\u30d5\u30a1\u30a4\u30eb\u30b7\u30b9\u30c6\u30e0\u304b\u3089\u76f4\u63a5\u30a2\u30af\u30bb\u30b9\u3059\u308b\u5834\u5408\u3068\u540c\u69d8 <\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">git<\/td>\n<td valign=\"top\">\n<pre>git:\/\/[server][\u30ea\u30dd\u30b8\u30c8\u30ea] <\/pre>\n<\/td>\n<td valign=\"top\">\n<ul>\n<li>\u30b9\u30d4\u30fc\u30c9\u91cd\u8996\u306e\u72ec\u81ea\u30d7\u30ed\u30c8\u30b3\u30eb <\/li>\n<li>9418\u30dd\u30fc\u30c8\u3092\u4f7f\u3046\u306e\u3067\u30d5\u30a1\u30a4\u30a2\u30fc\u30a6\u30a9\u30fc\u30eb\u306e\u8a2d\u5b9a\u304c\u5fc5\u8981 <\/li>\n<li>\u30d1\u30b9\u306f\u3001\u30ea\u30dd\u30b8\u30c8\u30ea\u3060\u3068\u898b\u306a\u3059\u30d1\u30b9\u3092<a href=\"http:\/\/typea.info\/tips\/wiki.cgi?page=Git\">Git<\/a>\u30b5\u30fc\u30d0\u30fc\u8d77\u52d5\u6642\u306b\u6307\u5b9a\u3059\u308b\u306e\u3067\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306f\u30ea\u30dd\u30b8\u30c8\u30ea\u540d\u3092\u6307\u5b9a <\/li>\n<li>\u304f\u306e git:\/\/ \u306f\u8aad\u307f\u53d6\u308a\u5c02\u7528\u3068\u3057\u3066\u3001\u66f8\u304d\u8fbc\u307f\u306b\u306f\u3001ssh:\/\/ \u3092\u4f7f\u3046\u3053\u3068\u304c\u591a\u3044 <\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr>\n<td valign=\"top\">HTTP\/HTTPS<\/td>\n<td valign=\"top\">\n<pre><a href=\"http:\/\/[server\">http:\/\/[server<\/a>][\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30d1\u30b9] <\/pre>\n<pre>&nbsp;<\/pre>\n<\/td>\n<td valign=\"top\">\n<ul>\n<li>\u56f0\u3063\u305f\u3068\u304d\u306e\u6700\u5f8c\u306e\u30d7\u30ed\u30c8\u30b3\u30eb <\/li>\n<li>\u52b9\u7387\u7684\u3067\u306f\u306a\u3044\u304c\u3001\u53b3\u683c\u306a\u30d5\u30a1\u30a4\u30a2\u30fc\u30a6\u30a9\u30fc\u30eb\u3067\u3082\u8a31\u53ef\u3055\u308c\u3066\u3044\u308b\u3053\u3068\u304c\u591a\u3044 <\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p>\u5225\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3057\u3001\u30af\u30ed\u30fc\u30f3\u3092\u4f5c\u6210\u3059\u308b\u4f8b<\/p>\n<pre class=\"prettyprint linenums\">git clone ssh:\/\/piroto@192.168.24.53\/home\/piroto\/git_test\/mysite<\/pre>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/git_ADDD\/git_cyg01.jpg\"><img loading=\"lazy\" decoding=\"async\" style=\"border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px\" title=\"git_cyg01\" border=\"0\" alt=\"git_cyg01\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/git_ADDD\/git_cyg01_thumb.jpg\" width=\"369\" height=\"215\" \/><\/a> <\/p>\n<p>\u4ee5\u4e0a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Git \u30e6\u30fc\u30b6\u30de\u30cb\u30e5\u30a2\u30eb (\u30d0\u30fc\u30b8\u30e7\u30f3 1.5.3 \u4ee5\u964d\u7528) \u3092\u8aad\u3093\u3067\u3001\u5168\u4f53\u3092\u628a\u63e1\u3059\u308b\u306e\u306f\u5c11\u3057\u304d\u3064\u3044\u306e\u3067\u3001\u5168\u4f53\u50cf\u3092\u628a\u63e1\u3057\u305f\u304f\u3066\u3001\u5165\u9580git \u3092\u8cfc\u5165\u3002 \u6280\u8853\u7cfb\u306e\u5165\u9580\u66f8\u306f\u3001\u3044\u304b\u306b\u6982\u5ff5\u304c\u308f\u304b\u308a\u3084\u3059\u304f\u66f8\u304b\u308c\u3066\u3044\u308b\u304b\u304c\u91cd\u8981\u3060\u3068\u601d\u3046 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","footnotes":""},"categories":[43],"tags":[],"class_list":["post-272","post","type-post","status-publish","format-standard","hentry","category-git"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/272","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=272"}],"version-history":[{"count":0,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/272\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=272"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=272"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=272"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}