{"id":4622,"date":"2012-03-30T08:08:47","date_gmt":"2012-03-29T23:08:47","guid":{"rendered":"http:\/\/www.ekesete.net\/log\/?p=4622"},"modified":"2012-04-04T23:24:34","modified_gmt":"2012-04-04T14:24:34","slug":"git%e3%81%ae%e3%82%88%e3%81%8f%e4%bd%bf%e3%81%84%e3%81%9d%e3%81%86%e3%81%aa%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89-%e5%82%99%e5%bf%98%e9%8c%b2","status":"publish","type":"post","link":"https:\/\/www.ekesete.net\/log\/?p=4622","title":{"rendered":"git\u306e\u3088\u304f\u4f7f\u3044\u305d\u3046\u306a\u30b3\u30de\u30f3\u30c9 (\u5099\u5fd8\u9332)"},"content":{"rendered":"<p>\u3060\u3044\u3076\u5897\u3048\u3066\u304d\u305f\u306e\u30672\u56de\u76ee<br \/>\n\u9806\u756a\u304c\u9069\u5f53\u306a\u306e\u3067\u6c17\u304c\u3064\u3044\u305f\u3089\u4e26\u3079\u66ff\u3048\u308b\u3002<br \/>\n#\u5099\u5fd8\u9332\u3067\u3059\u304c\u3001\u9593\u9055\u3063\u3066\u308b\u3082\u306e\u306b\u6c17\u304c\u3064\u3044\u305f\u3089\u6559\u3048\u3066\u3044\u305f\u3060\u3051\u308b\u3068\u52a9\u304b\u308a\u307e\u3059\u3002<\/p>\n<h5>\u30ea\u30e2\u30fc\u30c8\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u53d6\u5f97<\/h5>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">$git clone ssh:\/\/[\u30a2\u30ab\u30a6\u30f3\u30c8@]&lt;URL&gt;\/&lt;\u30ea\u30dd\u30b8\u30c8\u30ea&gt; [-b \u30d6\u30e9\u30f3\u30c1\u540d]<\/div><\/div>\n<p>\u6700\u5f8c\u306e[-b \u30d6\u30e9\u30f3\u30c1\u540d]\u306f\u3001\u30d6\u30e9\u30f3\u30c1\u3092\u6307\u5b9a\u3057\u3066\u53d6\u5f97\u3059\u308b\u5834\u5408\u7528<br \/>\n\u3000<\/p>\n<h5>\u3059\u3067\u306b\u30ea\u30e2\u30fc\u30c8\u304b\u3089clone\u6e08\u307f\u306e\u3082\u306e\u3092\u5225\u306e\u30d6\u30e9\u30f3\u30c1\u306b\u5909\u3048\u308b\u5834\u5408<\/h5>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">$git checkout -b origin\/\u30d6\u30e9\u30f3\u30c1\u540d \u30d6\u30e9\u30f3\u30c1\u540d<\/div><\/div>\n<p>\u3000<\/p>\n<h5>\u73fe\u5728\u306e\u30d6\u30e9\u30f3\u30c1\u3092\u78ba\u8a8d<\/h5>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">$git branch<\/div><\/div>\n<p>\u3000<\/p>\n<h5>\u30ea\u30e2\u30fc\u30c8\u306e\u73fe\u5728\u306e\u30d6\u30e9\u30f3\u30c1\u3092\u78ba\u8a8d<\/h5>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">$git branch -r<\/div><\/div>\n<p>\u3000<\/p>\n<h5>\u30ea\u30e2\u30fc\u30c8\u3092\u542b\u3081\u305f\u73fe\u5728\u306e\u30d6\u30e9\u30f3\u30c1\u3092\u78ba\u8a8d<\/h5>\n<p>(\u4e0a\u306e\uff12\u3064\u540c\u6642\u306b\u3057\u305f\u3082\u306e)<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">$git branch -a<\/div><\/div>\n<p>\u3000<\/p>\n<h5>\u4f5c\u696d\u30d6\u30e9\u30f3\u30c1\u3092\u5909\u66f4<\/h5>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">$git checkout &lt;\u30d6\u30e9\u30f3\u30c1\u540d&gt;<\/div><\/div>\n<p>\u3000<\/p>\n<h5>\u30ed\u30fc\u30ab\u30eb\u30d6\u30e9\u30f3\u30c1\u3092\u4f5c\u6210<\/h5>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">$git branch &lt;\u30d6\u30e9\u30f3\u30c1\u540d&gt;<\/div><\/div>\n<p>\u3000<\/p>\n<h5>\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308b\u8ffd\u52a0\u3055\u308c\u3066\u3044\u306a\u3044\u5168\u30d5\u30a1\u30a4\u30eb\u3092\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u8ffd\u52a0<\/h5>\n<p>(\u3069\u3061\u3089\u3067\u3082\u540c\u3058\uff1f)<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">$git add .<br \/>\n$git add --all<\/div><\/div>\n<p>\u3000<\/p>\n<h5>\u6307\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u8ffd\u52a0<\/h5>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">$git add &lt;\u30d5\u30a1\u30a4\u30eb\u540d&gt;<\/div><\/div>\n<p>\u3000<\/p>\n<h5>\u30ed\u30fc\u30ab\u30eb\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u30b3\u30df\u30c3\u30c8<\/h5>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">$git commit -m&quot;\u30b3\u30e1\u30f3\u30c8&quot;<\/div><\/div>\n<p>\u3000<\/p>\n<h5>\u6307\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30df\u30c3\u30c8<\/h5>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">$git commit &lt;\u30d5\u30a1\u30a4\u30eb\u540d&gt; -m&quot;\u30b3\u30e1\u30f3\u30c8&quot;<\/div><\/div>\n<p>\u3000<\/p>\n<h5>\u30b3\u30df\u30c3\u30c8\u3084\u308a\u76f4\u3057(\u53d6\u308a\u6d88\u3057\u3067\u306f\u306a\u3044)<\/h5>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">$git commit --amend -m&quot;\u5909\u66f4\u30b3\u30e1\u30f3\u30c8&quot;<\/div><\/div>\n<p>\u3000<\/p>\n<h5>\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u66f4\u65b0<\/h5>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">$git push &lt;\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea&gt; &lt;\u30ea\u30e2\u30fc\u30c8\u306e\u30d6\u30e9\u30f3\u30c1\u540d&gt;:&lt;\u30ed\u30fc\u30ab\u30eb\u306e\u30d6\u30e9\u30f3\u30c1\u540d&gt;<\/div><\/div>\n<p>$git push<br \/>\n\u306e\u307f\u3060\u3068\u62fe\u3063\u3066\u304d\u305f\u30ea\u30dd\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u73fe\u5728\u306e\u30d6\u30e9\u30f3\u30c1\u540d\u306e\u3082\u306e\u304c\u3042\u308c\u3070\u305d\u3053\u306b\u5165\u308b\u3002<br \/>\n\u306a\u3051\u308c\u3070\u81ea\u52d5\u4f5c\u6210\u3055\u308c\u308b\u3002<br \/>\n\u3000<\/p>\n<h5>\u30ed\u30fc\u30ab\u30eb\u30d6\u30e9\u30f3\u30c1\u3092\u524a\u9664<\/h5>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">$git branch -d &lt;\u30d6\u30e9\u30f3\u30c1\u540d&gt;<\/div><\/div>\n<p>\u3000<\/p>\n<h5>\u30ea\u30e2\u30fc\u30c8\u30d6\u30e9\u30f3\u30c1\u3092\u4f5c\u6210<\/h5>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">$git push origin &lt;\u30d6\u30e9\u30f3\u30c1\u540d&gt;<\/div><\/div>\n<p>\u3000<\/p>\n<h5>\u30ea\u30e2\u30fc\u30c8\u30d6\u30e9\u30f3\u30c1\u3092\u524a\u9664<\/h5>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">$git push :&lt;\u30d6\u30e9\u30f3\u30c1\u540d&gt;<\/div><\/div>\n<p>\u3000<\/p>\n<h5>\u30ed\u30fc\u30ab\u30eb\u3067\u306e\u4e00\u3064\u524d\u306e\u30b3\u30df\u30c3\u30c8\u3092\u7121\u52b9\u5316<\/h5>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">$git reset --soft HEAD^<\/div><\/div>\n<p>\u3000<\/p>\n<h5>\u6700\u5f8c\u306b\u30b3\u30df\u30c3\u30c8\u3057\u305f\u72b6\u614b\u306b\u623b\u3059<\/h5>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">$git reset --hard<\/div><\/div>\n<p>\u3000<\/p>\n<p>&#8212;&#8212;<\/p>\n<h5>git\u30ea\u30dd\u30b8\u30c8\u30ea\u4f5c\u6210<\/h5>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">$git init --bare<\/div><\/div>\n<p>\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u78ba\u8a8d<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">$git config remote.origin.url<\/div><\/div>\n<p>\u5909\u66f4\u3059\u308b\u5834\u5408\u306b\u306f\u5909\u66f4\u4f4d\u7f6e\u3092\u66f8\u304f\u3002<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">$git config remote.origin.url hoge<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u3060\u3044\u3076\u5897\u3048\u3066\u304d\u305f\u306e\u30672\u56de\u76ee \u9806\u756a\u304c\u9069\u5f53\u306a\u306e\u3067\u6c17\u304c\u3064\u3044\u305f\u3089\u4e26\u3079\u66ff\u3048\u308b\u3002 #\u5099\u5fd8\u9332\u3067\u3059\u304c\u3001\u9593\u9055\u3063\u3066\u308b\u3082\u306e\u306b\u6c17\u304c\u3064\u3044\u305f\u3089\u6559\u3048\u3066\u3044\u305f\u3060\u3051\u308b\u3068\u52a9\u304b\u308a\u307e\u3059\u3002 \u30ea\u30e2\u30fc\u30c8\u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u53d6\u5f97 $git clone ssh:\/\/[\u30a2\u30ab\u30a6\u30f3\u30c8\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.ekesete.net\/log\/?p=4622\">\u7d9a\u304d\u3092\u8aad\u3080 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-4622","post","type-post","status-publish","format-standard","hentry","category-7"],"_links":{"self":[{"href":"https:\/\/www.ekesete.net\/log\/index.php?rest_route=\/wp\/v2\/posts\/4622","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ekesete.net\/log\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ekesete.net\/log\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ekesete.net\/log\/index.php?rest_route=\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ekesete.net\/log\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4622"}],"version-history":[{"count":23,"href":"https:\/\/www.ekesete.net\/log\/index.php?rest_route=\/wp\/v2\/posts\/4622\/revisions"}],"predecessor-version":[{"id":4674,"href":"https:\/\/www.ekesete.net\/log\/index.php?rest_route=\/wp\/v2\/posts\/4622\/revisions\/4674"}],"wp:attachment":[{"href":"https:\/\/www.ekesete.net\/log\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4622"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ekesete.net\/log\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4622"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ekesete.net\/log\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4622"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}