{"id":6058,"date":"2019-08-25T09:24:03","date_gmt":"2019-08-25T01:24:03","guid":{"rendered":"https:\/\/blog.hoyo.idv.tw\/?p=6058"},"modified":"2022-08-17T10:24:28","modified_gmt":"2022-08-17T02:24:28","slug":"certos-git-server-phpstorm-8-0-3","status":"publish","type":"post","link":"https:\/\/blog.hoyo.idv.tw\/?p=6058","title":{"rendered":"CertOS - Git Server &#038; PhpStorm 8.0.3"},"content":{"rendered":"<p>\u521d\u6b21\u4f7f\u7528\u6642\uff0c\u6307\u4ee4\u7684\u4f7f\u7528\u67e5\u8a62\u76f8\u7576\u5bb9\u6613\uff0c\u53cd\u800c Hoyo \u89ba\u5f97\u5efa\u7acb\u672c\u5730\u3001\u4e3b\u6a5f\u7aef\u4e0d\u540c\u7684\u64cd\u4f5c\u53ca\u89c0\u5ff5\u624d\u662f\u66f4\u91cd\u8981\u7684<\/p>\n<ul>\n<li><a href=\"https:\/\/blog.csdn.net\/u013417227\/article\/details\/70854532\" target=\"_blank\" rel=\"noopener\">Git------Commit\u548cPush\u7684\u533a\u522b<\/a><\/li>\n<li><a href=\"http:\/\/ps.hsuweni.idv.tw\/?p=4910\" target=\"_blank\" rel=\"noopener\">git\u5be6\u6230 \u2013 \u5e38\u7528\u6307\u4ee4\u5217\u8868<\/a><\/li>\n<li><a href=\"https:\/\/git-scm.com\/book\/zh\/v2\/\" target=\"_blank\" rel=\"noopener\">Pro Git book<\/a><\/li>\n<\/ul>\n<p>--<\/p>\n<h2>Git Server \u5b89\u88dd\u3001\u8a2d\u5b9a<\/h2>\n<p>\u5b89\u88dd\u3001\u5efa\u7acb ssh \u4e0a\u50b3\u5e33\u865f<\/p>\n<pre class=\"lang:default decode:true\"># yum -y install git\r\n# adduser git\r\n# passwd git\r\n<\/pre>\n<p>\u5efa\u7acb\u7248\u672c\u7ba1\u7406\u76ee\u9304\u521d\u59cb\u5316<\/p>\n<pre class=\"lang:default decode:true \"># mkdir \/WEBSite\/git\r\n# cd \/WEBSite\/git\r\n# git init --bare\r\n# chown -R git:git .<\/pre>\n<p>--<\/p>\n<h2>PhpStorm 8.0.3<\/h2>\n<p>VCS \u2192 \u5f9e\u7248\u672c\u63a7\u5236\u4e2d\u6aa2\u51fa \u2192 Git<\/p>\n<p>Git Repository URL \u586b\u5165 Git Server \u5e33\u865f@\u7db2\u5740:\u76ee\u9304\u8def\u5f91<\/p>\n<p><img loading=\"lazy\" class=\"alignnone size-full wp-image-6062\" src=\"https:\/\/blog.hoyo.idv.tw\/wp-content\/uploads\/2019\/08\/Image-20190824-232125.png\" alt=\"\" width=\"548\" height=\"196\" srcset=\"https:\/\/blog.hoyo.idv.tw\/wp-content\/uploads\/2019\/08\/Image-20190824-232125.png 548w, https:\/\/blog.hoyo.idv.tw\/wp-content\/uploads\/2019\/08\/Image-20190824-232125-300x107.png 300w, https:\/\/blog.hoyo.idv.tw\/wp-content\/uploads\/2019\/08\/Image-20190824-232125-500x179.png 500w\" sizes=\"(max-width: 548px) 100vw, 548px\" \/><\/p>\n<p>\u4e0a\u50b3\u66f4\u65b0\u53ef\u4ee5\u4f7f\u7528 Ctrl + Shift + K \u5feb\u901f\u9375\u9032\u884c Push \u52d5\u4f5c<\/p>\n<p>--<\/p>\n<h2>remote: error: insufficient permission for adding an object to repository database .\/objects<\/h2>\n<p>Git Server \u76ee\u9304\u6a94\u6848\u7121\u6b0a\u9650\uff0c\u6aa2\u67e5\u662f\u5426\u5c07 git \u5e33\u865f\u64c1\u6709\u6b0a\u6388\u6b0a\u7d66 git \u76ee\u9304<\/p>\n<p>--<\/p>\n<pre class=\"lang:default decode:true\">[root@hoyoserver git]# git log --oneline --graph\r\n* 9eb7327 .\r\n* 1bf4c4d .\r\n* 915c08a dsf\r\n* ff89669 dsf<\/pre>\n<p>--<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p class=\"pvc_stats all \" data-element-id=\"6058\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> &nbsp;2,601&nbsp;total views, &nbsp;1&nbsp;views today<\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u521d\u6b21\u4f7f\u7528\u6642\uff0c\u6307\u4ee4\u7684\u4f7f\u7528\u67e5\u8a62\u76f8\u7576...<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p class=\"pvc_stats all \" data-element-id=\"6058\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> &nbsp;2,601&nbsp;total views, &nbsp;1&nbsp;views today<\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[285],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/6058"}],"collection":[{"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6058"}],"version-history":[{"count":9,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/6058\/revisions"}],"predecessor-version":[{"id":6070,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=\/wp\/v2\/posts\/6058\/revisions\/6070"}],"wp:attachment":[{"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6058"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6058"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.hoyo.idv.tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6058"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}