{"id":37869,"date":"2023-01-02T16:16:34","date_gmt":"2023-11-18T18:30:12","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%ac%ac4%e8%a9%b1%e7%9a%84git%e6%95%99%e7%a8%8b%ef%bc%8c%e4%b8%bb%e9%a2%98%e6%98%af%e5%bc%80%e5%a7%8b%e4%bd%bf%e7%94%a8git%ef%bc%9a%e4%bb%8e%e6%8f%90%e4%ba%a4%e5%88%b0%e6%8b%89%e5%8f%96\/"},"modified":"2024-04-29T08:10:15","modified_gmt":"2024-04-29T00:10:15","slug":"%e7%ac%ac4%e8%a9%b1%e7%9a%84git%e6%95%99%e7%a8%8b%ef%bc%8c%e4%b8%bb%e9%a2%98%e6%98%af%e5%bc%80%e5%a7%8b%e4%bd%bf%e7%94%a8git%ef%bc%9a%e4%bb%8e%e6%8f%90%e4%ba%a4%e5%88%b0%e6%8b%89%e5%8f%96","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%ac%ac4%e8%a9%b1%e7%9a%84git%e6%95%99%e7%a8%8b%ef%bc%8c%e4%b8%bb%e9%a2%98%e6%98%af%e5%bc%80%e5%a7%8b%e4%bd%bf%e7%94%a8git%ef%bc%9a%e4%bb%8e%e6%8f%90%e4%ba%a4%e5%88%b0%e6%8b%89%e5%8f%96\/","title":{"rendered":"\u7b2c4\u8a71\u7684Git\u6559\u7a0b\uff0c\u4e3b\u9898\u662f\u201c\u5f00\u59cb\u4f7f\u7528Git\uff1a\u4ece\u63d0\u4ea4\u5230\u62c9\u53d6\u201d"},"content":{"rendered":"<h1>\u8fd9\u7bc7\u6587\u7ae0<\/h1>\n<p>\u8fd9\u7bc7\u6587\u7ae0\u662f\u6839\u636e\u516c\u53f8\u5185\u90e8\u8fdb\u884c\u7684Git\u57f9\u8bad\u5e7b\u706f\u7247\u5236\u4f5c\u7684\u3002\u9488\u5bf9\u90a3\u4e9b\u867d\u7136\u5728\u4f7f\u7528Git\uff0c\u4f46\u5bf9\u5176\u7ed3\u6784\u548c\u5de5\u4f5c\u539f\u7406\u5e76\u4e0d\u4e86\u89e3\u7684\u4eba\u3002<\/p>\n<h1>\u4e0a\u6b21<\/h1>\n<p>&nbsp;<\/p>\n<h1>\u81ea\u6211\u4ecb\u7ecd (Z\u00ec w\u01d2 ji\u00e8<\/h1>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d30e037434c4406c5d3c7\/5-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2023-07-11 23.35.57.png\" \/><\/div>\n<h1>\u672f\u8bed\u7684\u89e3\u91ca<\/h1>\n<p>\u5728\u5b9e\u9645\u64cd\u4f5cGit\u4e4b\u524d\uff0c\u6211\u4f1a\u5148\u89e3\u91ca\u4e00\u4e9b\u672f\u8bed\u3002<\/p>\n<h2>\u5de5\u4f5c\u53f0<\/h2>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d30e037434c4406c5d3c7\/9-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2023-07-11 23.38.20.png\" \/><\/div>\n<h2>\u7d22\u5f15<\/h2>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d30e037434c4406c5d3c7\/11-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2023-07-11 23.39.18.png\" \/><\/div>\n<h2>\u63d0\u4ea4<\/h2>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d30e037434c4406c5d3c7\/13-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2023-07-11 23.40.21.png\" \/><\/div>\n<h2>\u6309\u538b<\/h2>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d30e037434c4406c5d3c7\/15-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2023-07-11 23.42.30.png\" \/><\/div>\n<h2>\u8bf7\u63d0\u4f9b\u66f4\u591a\u4e0a\u4e0b\u6587\u4fe1\u606f\u3002<\/h2>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d30e037434c4406c5d3c7\/17-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2023-07-11 23.43.26.png\" \/><\/div>\n<h1>\u5b9e\u8df5<\/h1>\n<h2>\u5229\u7528\u547d\u4ee4\u8fdb\u884c\u5b9e\u8df5<\/h2>\n<p>\u9996\u5148\u9700\u8981\u51c6\u5907\u4e00\u4e2a\u5de5\u4f5c\u76ee\u5f55\u4f5c\u4e3a\u5de5\u4f5c\u533a\u3002<br \/>\n\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u521b\u5efa\u540d\u4e3anew-repo\u7684\u76ee\u5f55\uff0c\u5e76\u8fdb\u884c\u79fb\u52a8\u5230\u8be5\u76ee\u5f55\u4e2d\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nb\">mkdir <\/span>new-repo\r\n<span class=\"nb\">cd <\/span>new-repo\r\n<\/code><\/pre>\n<p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u6765\u521b\u5efa\u672c\u5730\u4ed3\u5e93\u5427\u3002<br \/>\n\u901a\u8fc7\u4e0b\u9762\u7684\u547d\u4ee4\u5c06\u521b\u5efa\u4e00\u4e2a\u672c\u5730\u4ed3\u5e93\u3002<\/p>\n<pre class=\"post-pre\"><code>git init\r\n<\/code><\/pre>\n<p>\u5982\u679c\u663e\u793a\u4ee5\u4e0b\u7c7b\u4f3c\u7684\u6d88\u606f\uff0c\u5c31\u8868\u793a\u6210\u529f\u4e86\u3002<\/p>\n<pre class=\"post-pre\"><code>Initialized empty Git repository in \/Users\/kouhai\/new-repo\/.git\/\r\n<\/code><\/pre>\n<p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u521b\u5efa\u4e00\u4e2a\u540d\u4e3ahello.txt\u7684\u6587\u4ef6\uff0c\u5e76\u5c1d\u8bd5\u5411\u5176\u4e2d\u5199\u5165&#8221;Hello, Git&#8221;\u8fd9\u53e5\u8bdd\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nb\">echo<\/span> <span class=\"s2\">\"Hello, Git\"<\/span> <span class=\"o\">&gt;<\/span> hello.txt\r\n<\/code><\/pre>\n<p>\u7531\u4e8e\u66f4\u6539\u4e86\u6587\u4ef6\uff0c\u56e0\u6b64\u8ba9\u6211\u4eec\u5c06\u6b64\u6587\u4ef6\u4e0a\u4f20\u5230\u8fdc\u7a0b\u4ed3\u5e93\u3002<br \/>\n\u9996\u5148\u5c06\u6587\u4ef6\u6dfb\u52a0\u5230\u7d22\u5f15\u4e2d\u3002<\/p>\n<pre class=\"post-pre\"><code>git add hello.txt\r\n<\/code><\/pre>\n<p>\u5f53\u60a8\u5728\u7d22\u5f15\u4e2d\u6dfb\u52a0\u6587\u4ef6\u540e\uff0c\u63a5\u4e0b\u6765\u8981\u8fdb\u884c\u63d0\u4ea4\u3002<br \/>\n\u5728\u63d0\u4ea4\u65f6\uff0c\u60a8\u9700\u8981\u6dfb\u52a0\u4e00\u4e2a\u8868\u793a\u60a8\u6240\u63d0\u4ea4\u5185\u5bb9\u7684\u6d88\u606f\uff0c\u79f0\u4e3a\u63d0\u4ea4\u6d88\u606f\u3002<br \/>\n\u4ee5\u4e0b\u547d\u4ee4\u4e2d\u7684\u201cInitial commit\u201d\u90e8\u5206\u5373\u4e3a\u63d0\u4ea4\u6d88\u606f\u3002<\/p>\n<pre class=\"post-pre\"><code>git commit <span class=\"nt\">-m<\/span> <span class=\"s2\">\"Initial commit\"<\/span>\r\n<\/code><\/pre>\n<p>\u5f53\u63d0\u4ea4\u6210\u529f\u540e\uff0c\u5c06\u663e\u793a\u5982\u4e0b\u6d88\u606f\u3002<\/p>\n<pre class=\"post-pre\"><code>[main (root-commit) 1842a48] Initial commit\r\n 1 file changed, 1 insertion(+)\r\n create mode 100644 hello.txt\r\n<\/code><\/pre>\n<h2>\u5728GitHub\u4e0a\u521b\u5efa\u8fdc\u7a0b\u4ee3\u7801\u4ed3\u5e93<\/h2>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d30e037434c4406c5d3c7\/35-2.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2023-07-12 0.02.32.png\" \/><\/div>\n<h2>\u5c06\u4ee3\u7801\u63a8\u9001\u5230\u8fdc\u7a0b\u6570\u636e\u5e93\u3002<\/h2>\n<p>\u73b0\u5728\u6709\u4e86\u8fdc\u7a0b\u4ed3\u5e93\uff0c\u6211\u4eec\u6765\u5c1d\u8bd5\u63a8\u9001\u5427\u3002<br \/>\n\u9996\u5148\uff0c\u5c06\u672c\u5730\u4ed3\u5e93\u548c\u8fdc\u7a0b\u4ed3\u5e93\u5173\u8054\u8d77\u6765\u3002<\/p>\n<pre class=\"post-pre\"><code>git remote add origin https:\/\/github.com\/xxxxxx\/test-repo.git\r\n<\/code><\/pre>\n<p>\u300chttps:\/\/github.com\/xxxxxx\/test-repo.git\u300d\u7684\u90e8\u5206\u662f\u4e4b\u524d\u590d\u5236\u4fdd\u5b58\u7684 Git URL\u3002<br \/>\n&#8220;origin&#8221; \u7684\u90e8\u5206\u662f\u8fdc\u7a0b\u4ed3\u5e93\u7684\u540d\u79f0\u3002\u60a8\u53ef\u4ee5\u81ea\u884c\u9009\u62e9\u4efb\u610f\u540d\u79f0\uff0c\u4f46\u901a\u5e38\u4f7f\u7528 &#8220;origin&#8221; \u662f\u6bd4\u8f83\u5e38\u89c1\u7684\u3002<\/p>\n<p>\u5982\u679c\u53ef\u4ee5\u6dfb\u52a0\u8fdc\u7a0b\u5b58\u50a8\u5e93\uff0c\u73b0\u5728\u5c31\u53ef\u4ee5\u5f00\u59cb\u63a8\u9001\u4e86\u3002<br \/>\n\u8ba9\u6211\u4eec\u5c1d\u8bd5\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u3002<\/p>\n<pre class=\"post-pre\"><code>git push <span class=\"nt\">-u<\/span> origin main\r\n<\/code><\/pre>\n<p>\u5f53\u547d\u4ee4\u7684\u610f\u601d\u662f\u5c06\u672c\u5730\u4ee3\u7801\u63a8\u9001\u5230\u540d\u4e3a\u201corigin\u201d\u7684\u8fdc\u7a0b\u4ee3\u7801\u5e93\u7684main\u5206\u652f\u3002\u6210\u529f\u540e\u5c06\u663e\u793a\u4ee5\u4e0b\u6d88\u606f\u3002<\/p>\n<pre class=\"post-pre\"><code>Enumerating objects: 3, done.\r\nCounting objects: 100% (3\/3), done.\r\nWriting objects: 100% (3\/3), 223 bytes | 223.00 KiB\/s, done.\r\nTotal 3 (delta 0), reused 0 (delta 0), pack-reused 0\r\nTo https:\/\/github.com\/xxxxxx\/test-repo.git\r\n * [new branch]      main -&gt; main\r\nbranch 'main' set up to track 'origin\/main'.\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d30e037434c4406c5d3c7\/44-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2023-07-12 0.10.17.png\" \/><\/div>\n<h2>\u514b\u9686\u9060\u7a0b\u5b58\u5132\u5eab<\/h2>\n<p>\u8ba9\u6211\u4eec\u5c1d\u8bd5\u590d\u5236\u522b\u4eba\u521b\u5efa\u7684\u8fdc\u7a0b\u4ee3\u7801\u5e93\u5e76\u521b\u5efa\u672c\u5730\u4ee3\u7801\u5e93\uff08\u79f0\u4e3a\u514b\u9686\uff09\u3002<\/p>\n<pre class=\"post-pre\"><code>git clone https:\/\/github.com\/xxxxx\/test-repo.git new-repo-clone\r\n<\/code><\/pre>\n<p>\u8fd9\u4e2a\u547d\u4ee4\u7684\u610f\u601d\u662f\u5c06 &#8220;https:\/\/github.com\/xxxxx\/test-repo.git&#8221; \u8fd9\u4e2a\u8fdc\u7a0b\u4ed3\u5e93\u514b\u9686\u5230 &#8220;new-repo-clone&#8221; \u76ee\u5f55\u4e2d\u3002<\/p>\n<h2>\u62c9\uff08l\u0101\uff09<\/h2>\n<p>\u5982\u679c\u8981\u8fd0\u884cPull\uff0c\u8bf7\u6267\u884c\u4e0b\u9762\u7684\u547d\u4ee4\u3002<\/p>\n<pre class=\"post-pre\"><code>git pull \r\n<\/code><\/pre>\n<h2>\u4f7f\u7528VSCode\u8fdb\u884c\u5b9e\u8df5<\/h2>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d30e037434c4406c5d3c7\/53-13.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2023-07-12 0.30.40.png\" \/><\/div>\n<h2>\u5728SourceTree\u4e2d\u7684\u5b9e\u8df5<\/h2>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d30e037434c4406c5d3c7\/55-12.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2023-07-12 0.40.14.png\" \/><\/div>\n<h1>\u62c9 \/ \u63a8 \/ \u53d6<\/h1>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d30e037434c4406c5d3c7\/57-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2023-07-12 0.41.55.png\" \/><\/div>\n<h1>\u5ffd\u7565.gitignore<\/h1>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d30e037434c4406c5d3c7\/59-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2023-07-12 0.43.06.png\" \/><\/div>\n<h1>\u4e0b\u4e00\u6b21<\/h1>\n<p>\u63a5\u4e0b\u6765\u662f\u7b2c\u4e94\u8bdd\u300a\u5206\u53c9\u7684\u7406\u89e3\uff1a\u5de5\u4f5c\u7684\u5206\u6b67\u70b9\u300b\u3002<br \/>\n\u94fe\u63a5\uff1ahttps:\/\/qiita.com\/sho_fcafe\/items\/fe3dc7b80e0622f61032<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u7bc7\u6587\u7ae0 \u8fd9\u7bc7\u6587\u7ae0\u662f\u6839\u636e\u516c\u53f8\u5185\u90e8\u8fdb\u884c\u7684Git\u57f9\u8bad\u5e7b\u706f\u7247\u5236\u4f5c\u7684\u3002\u9488\u5bf9\u90a3\u4e9b\u867d\u7136\u5728\u4f7f\u7528Git\uff0c\u4f46\u5bf9\u5176\u7ed3\u6784\u548c\u5de5\u4f5c\u539f\u7406\u5e76 [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-37869","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u7b2c4\u8a71\u7684Git\u6559\u7a0b\uff0c\u4e3b\u9898\u662f\u201c\u5f00\u59cb\u4f7f\u7528Git\uff1a\u4ece\u63d0\u4ea4\u5230\u62c9\u53d6\u201d - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u7b2c4\u8a71\u7684git\u6559\u7a0b\uff0c\u4e3b\u9898\u662f\u5f00\u59cb\u4f7f\u7528git\uff1a\u4ece\u63d0\u4ea4\u5230\u62c9\u53d6\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u7b2c4\u8a71\u7684Git\u6559\u7a0b\uff0c\u4e3b\u9898\u662f\u201c\u5f00\u59cb\u4f7f\u7528Git\uff1a\u4ece\u63d0\u4ea4\u5230\u62c9\u53d6\u201d\" \/>\n<meta property=\"og:description\" content=\"\u8fd9\u7bc7\u6587\u7ae0 \u8fd9\u7bc7\u6587\u7ae0\u662f\u6839\u636e\u516c\u53f8\u5185\u90e8\u8fdb\u884c\u7684Git\u57f9\u8bad\u5e7b\u706f\u7247\u5236\u4f5c\u7684\u3002\u9488\u5bf9\u90a3\u4e9b\u867d\u7136\u5728\u4f7f\u7528Git\uff0c\u4f46\u5bf9\u5176\u7ed3\u6784\u548c\u5de5\u4f5c\u539f\u7406\u5e76 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u7b2c4\u8a71\u7684git\u6559\u7a0b\uff0c\u4e3b\u9898\u662f\u5f00\u59cb\u4f7f\u7528git\uff1a\u4ece\u63d0\u4ea4\u5230\u62c9\u53d6\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-11-18T18:30:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T00:10:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d30e037434c4406c5d3c7\/5-0.png\" \/>\n<meta name=\"author\" content=\"\u96c5, \u609f\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u96c5, \u609f\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e7%ac%ac4%e8%a9%b1%e7%9a%84git%e6%95%99%e7%a8%8b%ef%bc%8c%e4%b8%bb%e9%a2%98%e6%98%af%e5%bc%80%e5%a7%8b%e4%bd%bf%e7%94%a8git%ef%bc%9a%e4%bb%8e%e6%8f%90%e4%ba%a4%e5%88%b0%e6%8b%89%e5%8f%96\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e7%ac%ac4%e8%a9%b1%e7%9a%84git%e6%95%99%e7%a8%8b%ef%bc%8c%e4%b8%bb%e9%a2%98%e6%98%af%e5%bc%80%e5%a7%8b%e4%bd%bf%e7%94%a8git%ef%bc%9a%e4%bb%8e%e6%8f%90%e4%ba%a4%e5%88%b0%e6%8b%89%e5%8f%96\/\",\"name\":\"\u7b2c4\u8a71\u7684Git\u6559\u7a0b\uff0c\u4e3b\u9898\u662f\u201c\u5f00\u59cb\u4f7f\u7528Git\uff1a\u4ece\u63d0\u4ea4\u5230\u62c9\u53d6\u201d - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-11-18T18:30:12+00:00\",\"dateModified\":\"2024-04-29T00:10:15+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e7%ac%ac4%e8%a9%b1%e7%9a%84git%e6%95%99%e7%a8%8b%ef%bc%8c%e4%b8%bb%e9%a2%98%e6%98%af%e5%bc%80%e5%a7%8b%e4%bd%bf%e7%94%a8git%ef%bc%9a%e4%bb%8e%e6%8f%90%e4%ba%a4%e5%88%b0%e6%8b%89%e5%8f%96\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e7%ac%ac4%e8%a9%b1%e7%9a%84git%e6%95%99%e7%a8%8b%ef%bc%8c%e4%b8%bb%e9%a2%98%e6%98%af%e5%bc%80%e5%a7%8b%e4%bd%bf%e7%94%a8git%ef%bc%9a%e4%bb%8e%e6%8f%90%e4%ba%a4%e5%88%b0%e6%8b%89%e5%8f%96\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e7%ac%ac4%e8%a9%b1%e7%9a%84git%e6%95%99%e7%a8%8b%ef%bc%8c%e4%b8%bb%e9%a2%98%e6%98%af%e5%bc%80%e5%a7%8b%e4%bd%bf%e7%94%a8git%ef%bc%9a%e4%bb%8e%e6%8f%90%e4%ba%a4%e5%88%b0%e6%8b%89%e5%8f%96\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u7b2c4\u8a71\u7684Git\u6559\u7a0b\uff0c\u4e3b\u9898\u662f\u201c\u5f00\u59cb\u4f7f\u7528Git\uff1a\u4ece\u63d0\u4ea4\u5230\u62c9\u53d6\u201d\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\",\"name\":\"\u96c5, \u609f\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"caption\":\"\u96c5, \u609f\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e7%ac%ac4%e8%a9%b1%e7%9a%84git%e6%95%99%e7%a8%8b%ef%bc%8c%e4%b8%bb%e9%a2%98%e6%98%af%e5%bc%80%e5%a7%8b%e4%bd%bf%e7%94%a8git%ef%bc%9a%e4%bb%8e%e6%8f%90%e4%ba%a4%e5%88%b0%e6%8b%89%e5%8f%96\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u7b2c4\u8a71\u7684Git\u6559\u7a0b\uff0c\u4e3b\u9898\u662f\u201c\u5f00\u59cb\u4f7f\u7528Git\uff1a\u4ece\u63d0\u4ea4\u5230\u62c9\u53d6\u201d - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u7b2c4\u8a71\u7684git\u6559\u7a0b\uff0c\u4e3b\u9898\u662f\u5f00\u59cb\u4f7f\u7528git\uff1a\u4ece\u63d0\u4ea4\u5230\u62c9\u53d6\/","og_locale":"zh_CN","og_type":"article","og_title":"\u7b2c4\u8a71\u7684Git\u6559\u7a0b\uff0c\u4e3b\u9898\u662f\u201c\u5f00\u59cb\u4f7f\u7528Git\uff1a\u4ece\u63d0\u4ea4\u5230\u62c9\u53d6\u201d","og_description":"\u8fd9\u7bc7\u6587\u7ae0 \u8fd9\u7bc7\u6587\u7ae0\u662f\u6839\u636e\u516c\u53f8\u5185\u90e8\u8fdb\u884c\u7684Git\u57f9\u8bad\u5e7b\u706f\u7247\u5236\u4f5c\u7684\u3002\u9488\u5bf9\u90a3\u4e9b\u867d\u7136\u5728\u4f7f\u7528Git\uff0c\u4f46\u5bf9\u5176\u7ed3\u6784\u548c\u5de5\u4f5c\u539f\u7406\u5e76 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u7b2c4\u8a71\u7684git\u6559\u7a0b\uff0c\u4e3b\u9898\u662f\u5f00\u59cb\u4f7f\u7528git\uff1a\u4ece\u63d0\u4ea4\u5230\u62c9\u53d6\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-11-18T18:30:12+00:00","article_modified_time":"2024-04-29T00:10:15+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d30e037434c4406c5d3c7\/5-0.png"}],"author":"\u96c5, \u609f","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u96c5, \u609f","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%ac%ac4%e8%a9%b1%e7%9a%84git%e6%95%99%e7%a8%8b%ef%bc%8c%e4%b8%bb%e9%a2%98%e6%98%af%e5%bc%80%e5%a7%8b%e4%bd%bf%e7%94%a8git%ef%bc%9a%e4%bb%8e%e6%8f%90%e4%ba%a4%e5%88%b0%e6%8b%89%e5%8f%96\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%ac%ac4%e8%a9%b1%e7%9a%84git%e6%95%99%e7%a8%8b%ef%bc%8c%e4%b8%bb%e9%a2%98%e6%98%af%e5%bc%80%e5%a7%8b%e4%bd%bf%e7%94%a8git%ef%bc%9a%e4%bb%8e%e6%8f%90%e4%ba%a4%e5%88%b0%e6%8b%89%e5%8f%96\/","name":"\u7b2c4\u8a71\u7684Git\u6559\u7a0b\uff0c\u4e3b\u9898\u662f\u201c\u5f00\u59cb\u4f7f\u7528Git\uff1a\u4ece\u63d0\u4ea4\u5230\u62c9\u53d6\u201d - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-11-18T18:30:12+00:00","dateModified":"2024-04-29T00:10:15+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%ac%ac4%e8%a9%b1%e7%9a%84git%e6%95%99%e7%a8%8b%ef%bc%8c%e4%b8%bb%e9%a2%98%e6%98%af%e5%bc%80%e5%a7%8b%e4%bd%bf%e7%94%a8git%ef%bc%9a%e4%bb%8e%e6%8f%90%e4%ba%a4%e5%88%b0%e6%8b%89%e5%8f%96\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e7%ac%ac4%e8%a9%b1%e7%9a%84git%e6%95%99%e7%a8%8b%ef%bc%8c%e4%b8%bb%e9%a2%98%e6%98%af%e5%bc%80%e5%a7%8b%e4%bd%bf%e7%94%a8git%ef%bc%9a%e4%bb%8e%e6%8f%90%e4%ba%a4%e5%88%b0%e6%8b%89%e5%8f%96\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%ac%ac4%e8%a9%b1%e7%9a%84git%e6%95%99%e7%a8%8b%ef%bc%8c%e4%b8%bb%e9%a2%98%e6%98%af%e5%bc%80%e5%a7%8b%e4%bd%bf%e7%94%a8git%ef%bc%9a%e4%bb%8e%e6%8f%90%e4%ba%a4%e5%88%b0%e6%8b%89%e5%8f%96\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u7b2c4\u8a71\u7684Git\u6559\u7a0b\uff0c\u4e3b\u9898\u662f\u201c\u5f00\u59cb\u4f7f\u7528Git\uff1a\u4ece\u63d0\u4ea4\u5230\u62c9\u53d6\u201d"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6","name":"\u96c5, \u609f","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","caption":"\u96c5, \u609f"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e7%ac%ac4%e8%a9%b1%e7%9a%84git%e6%95%99%e7%a8%8b%ef%bc%8c%e4%b8%bb%e9%a2%98%e6%98%af%e5%bc%80%e5%a7%8b%e4%bd%bf%e7%94%a8git%ef%bc%9a%e4%bb%8e%e6%8f%90%e4%ba%a4%e5%88%b0%e6%8b%89%e5%8f%96\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/37869","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=37869"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/37869\/revisions"}],"predecessor-version":[{"id":84070,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/37869\/revisions\/84070"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=37869"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=37869"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=37869"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}