{"id":807,"date":"2023-05-19T16:15:05","date_gmt":"2023-05-19T08:15:05","guid":{"rendered":"http:\/\/22pig.com\/?p=807"},"modified":"2023-10-11T16:39:54","modified_gmt":"2023-10-11T08:39:54","slug":"git%e4%bd%bf%e7%94%a8%e7%b0%a1%e8%bf%b0","status":"publish","type":"post","link":"http:\/\/22pig.com\/?p=807","title":{"rendered":"git\u4f7f\u7528\u7c21\u8ff0"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u540e\u7eed\u6bcf\u6b21\u4ee3\u7801\u4fee\u6539\u90fd\u4ee5\u5982\u4e0a\u65b9\u5f0f\u8fdb\u884c\u4ee3\u7801\u63d0\u4ea4\uff0c\u7b80\u5199\u5982\u4e0b\uff1a<br>git status&#8212;\u67e5\u770b\u4fee\u6539\u6587\u4ef6<br>git add&#8212;\u6dfb\u52a0\u4fee\u6539\u6587\u4ef6\u5230\u6682\u5b58\u533a<br>git status &#8212;-\u67e5\u770b\u662f\u5426\u6dfb\u52a0\u6210\u529f<br>git commit -m &#8220;\u63d0\u4ea4\u627f\u8bfa&#8221;&#8212;-\u4f5c\u51fa\u63d0\u4ea4\u627f\u8bfa<br>git push orgin &lt;\u8fdc\u7a0b\u4e3b\u673a\u540d&gt; &lt;\u672c\u5730\u5206\u652f\u540d&gt;:&lt;\u8fdc\u7a0b\u5206\u652f\u540d&gt;&#8212;-\u63a8\u52a8\u4ee3\u7801\u81f3\u8fdc\u7aef<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1.\u5728\u5f53\u524d\u76ee\u5f55\u4e0b<br>git init<br>git remote add origin https:\/\/gitee.com\/api<strong>*<\/strong><br>git fetch origin apitest(\u8fdc\u7a0b\u5206\u652f\u540d)&#8212;\u83b7\u53d6apitest\u5206\u652f\u7684\u4ee3\u7801\u5e93\uff0c\u82e5\u83b7\u53d6\u5168\u90e8\u4ee3\u7801\u5219\u4e0d\u7528\u52a0\u5206\u652f\u540d<br>\u521b\u5efa\u672c\u5730\u5206\u652f\u5e76\u5207\u6362\u5230\u672c\u5730\u5206\u652fLocalapitest\uff0cLocalapitest\u4e3a\u672c\u5730\u5206\u652f\u540d\uff0c apitest\u4e3a\u8fdc\u7a0b\u5206\u652f\u540d<br>git checkout -b Localapitest origin\/apitest<br>\u62c9\u53d6\u8fdc\u7a0b\u5206\u652f\u4ee3\u7801\u5230\u672c\u5730\uff0capitest\u8fdc\u7a0b\u5206\u652f\uff0clocalapitest\u672c\u5730\u5206\u652f<br>git pull origin apitest:localapitest<br>\u5b8c\u6210~~~~<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u8df3\u8fc7SSL\u68c0\u67e5<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">git config &#8211;global http.sslVerify false<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u540e\u7eed\u6bcf\u6b21\u4ee3\u7801\u4fee\u6539\u90fd\u4ee5\u5982\u4e0a\u65b9\u5f0f\u8fdb\u884c\u4ee3\u7801\u63d0\u4ea4\uff0c\u7b80\u5199\u5982\u4e0b\uff1agit status&#8212;\u67e5\u770b\u4fee\u6539\u6587\u4ef6git add&#8212;\u6dfb\u52a0\u4fee\u6539\u6587\u4ef6\u5230\u6682\u5b58\u533agit status &#8212;-\u67e5\u770b\u662f\u5426\u6dfb\u52a0\u6210\u529fgit commit -m &#8220;\u63d0\u4ea4\u627f\u8bfa&#8221;&#8212;-\u4f5c\u51fa\u63d0\u4ea4\u627f\u8bfagit push orgin &lt;\u8fdc\u7a0b\u4e3b\u673a\u540d&gt; &lt;\u672c\u5730\u5206\u652f\u540d&gt;:&lt;\u8fdc\u7a0b\u5206\u652f\u540d&gt;&#8212;-\u63a8\u52a8\u4ee3\u7801\u81f3\u8fdc\u7aef 1.\u5728\u5f53\u524d\u76ee\u5f55\u4e0bgit initgit remote add origin https:\/\/gitee.com\/api*git fetch origin apitest(\u8fdc\u7a0b\u5206\u652f\u540d)&#8212;\u83b7\u53d6apitest\u5206\u652f\u7684\u4ee3\u7801\u5e93\uff0c\u82e5\u83b7\u53d6\u5168\u90e8\u4ee3\u7801\u5219\u4e0d\u7528\u52a0\u5206\u652f\u540d\u521b\u5efa\u672c\u5730\u5206\u652f\u5e76\u5207\u6362\u5230\u672c\u5730\u5206\u652fLocalapitest\uff0cLocalapitest\u4e3a\u672c\u5730\u5206\u652f\u540d\uff0c apitest\u4e3a\u8fdc\u7a0b\u5206\u652f\u540dgit checkout -b Localapitest origin\/apitest\u62c9\u53d6\u8fdc\u7a0b\u5206\u652f\u4ee3\u7801\u5230\u672c\u5730\uff0capitest\u8fdc\u7a0b\u5206\u652f\uff0clocalapitest\u672c\u5730\u5206\u652fgit pull origin apitest:localapitest\u5b8c\u6210~~~~ \u8df3\u8fc7SSL\u68c0\u67e5 git config &#8211;global http.sslVerify false<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"class_list":["post-807","post","type-post","status-publish","format-standard","hentry","category-java"],"_links":{"self":[{"href":"http:\/\/22pig.com\/index.php?rest_route=\/wp\/v2\/posts\/807","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/22pig.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/22pig.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/22pig.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/22pig.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=807"}],"version-history":[{"count":2,"href":"http:\/\/22pig.com\/index.php?rest_route=\/wp\/v2\/posts\/807\/revisions"}],"predecessor-version":[{"id":836,"href":"http:\/\/22pig.com\/index.php?rest_route=\/wp\/v2\/posts\/807\/revisions\/836"}],"wp:attachment":[{"href":"http:\/\/22pig.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=807"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/22pig.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=807"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/22pig.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=807"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}