{"id":37385,"date":"2023-09-22T02:55:08","date_gmt":"2023-07-26T07:10:57","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/git-github%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95\/"},"modified":"2024-05-04T00:58:38","modified_gmt":"2024-05-03T16:58:38","slug":"git-github%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/git-github%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95\/","title":{"rendered":"Git\/Github\u7684\u5907\u5fd8\u5f55"},"content":{"rendered":"<h1>\u9996\u5148<\/h1>\n<p>\u53c2\u52a0\u4e86\u7b2c\u4e00\u6b21\u9ed1\u5ba2\u9a6c\u62c9\u677e\u65f6\uff0c\u89c9\u5f97\u4f7f\u7528\u8d77\u6765\u592a\u65b9\u4fbf\u4e86\uff0c\u6240\u4ee5\u4e3a\u4e86\u81ea\u5df1\u6574\u7406\u8d77\u6765\u3002<br \/>\n\u56e0\u4e3a\u5b8c\u5168\u4e0d\u719f\u7ec3\uff0c\u6240\u4ee5\u4f1a\u4e0d\u65ad\u8ffd\u52a0\u3002<br \/>\n\u5982\u679c\u6709\u9519\u8bef\uff0c\u8bf7\u6beb\u4e0d\u5ba2\u6c14\u5730\u544a\u8bc9\u6211\u3002<br \/>\n\u90a3\u4e48\u6211\u5c31\u8d76\u5feb\u5199\u4e0b\u53bb\u3002<\/p>\n<h1>\u76ee\u5f55<\/h1>\n<p>1. \u9996\u5148<br \/>\n2. \u76ee\u5f55<br \/>\n3. \u6982\u8981<br \/>\n4. \u5f15\u8a00<br \/>\n5. \u57fa\u672c\u4f7f\u7528\u65b9\u6cd5<br \/>\n6. \u4e0d\u540c\u7684\u6982\u5ff5<br \/>\n7. \u672f\u8bed<br \/>\n8. \u5176\u4ed6\u5404\u79cd\u547d\u4ee4<br \/>\n9. \u7ed3\u675f<\/p>\n<h1>\u6982\u8981 &#8211; General summary or overview<\/h1>\n<p>Git\u662f\u4e00\u79cd\u5206\u5e03\u5f0f\u7248\u672c\u63a7\u5236\u7cfb\u7edf\uff08Version Control System\uff09\u3002<br \/>\n\u5b83\u7684\u5f3a\u5927\u4e4b\u5904\u5728\u4e8e\u53ef\u4ee5\u5728\u4e0d\u540c\u7684\u5730\u65b9\u8fdb\u884c\u5f00\u53d1\u3002<br \/>\n\u53ef\u4ee5\u901a\u8fc7\u8fdc\u7a0b\u4ed3\u5e93\u6765\u5171\u4eab\u5404\u81ea\u7684\u8fdb\u5ea6\u3002<br \/>\n\u8fd8\u53ef\u4ee5\u83b7\u53d6\u4ee5\u524d\u7684\u7248\u672c\u3002<br \/>\nGithub\u662f\u4e00\u4e2a\u63d0\u4f9b\u8fdc\u7a0b\u4ed3\u5e93\u7684\u6258\u7ba1\u670d\u52a1\uff08\u63d0\u4f9b\u670d\u52a1\u5668\u79df\u7528\u670d\u52a1\uff09\u3002<br \/>\n\u8fd8\u6709\u4e00\u4e2a\u53ebGitLab\u7684\u7c7b\u4f3c\u670d\u52a1\u3002<\/p>\n<h1>\u5f15\u5165<\/h1>\n<p>\u6682\u65f6\u5148\u4ecb\u7ecd\u4e00\u4e0b\u5982\u4f55\u8bbe\u7f6e\u3002<br \/>\n\u867d\u7136\u6709\u5f88\u591a\u53ef\u4ee5\u4f7f\u7528git\u7684\u5de5\u5177\uff0c\u4f46\u4eca\u6b21\u6211\u4eec\u4f1a\u7528git\u548cVisual Studio Code\uff08\u4ee5\u4e0b\u7b80\u79f0VScode\uff09\u3002<br \/>\n\u867d\u7136\u6709GUI\u5de5\u5177SourceTree\uff0c\u4f46VScode\u4e5f\u53ef\u4ee5\u8fdb\u884cGUI\u64cd\u4f5c\uff0c\u6240\u4ee5\u4e5f\u8bb8\u7528\u4e0d\u7740SourceTree\u3002<br \/>\n\u57fa\u672c\u4e0a\u662f\u5173\u4e8eWindows\u7684\u8bb2\u89e3\u3002<\/p>\n<h4>\u4e0b\u8f7d\u3001\u5b89\u88c5\u3001\u767b\u5f55<\/h4>\n<p>VScode\u53ef\u4ee5\u5728\u4ee5\u4e0b\u94fe\u63a5\u4e0b\u8f7d\uff1ahttps:\/\/code.visualstudio.com\/download<br \/>\nGit\u53ef\u4ee5\u5728\u4ee5\u4e0b\u94fe\u63a5\u4e0b\u8f7d\uff1ahttps:\/\/git-scm.com\/<\/p>\n<p>\u4ece\u8fd9\u91cc\u4e0b\u8f7d\u9002\u5408\u81ea\u5df1\u73af\u5883\u7684\u5b89\u88c5\u7a0b\u5e8f\uff0c\u5e76\u8fdb\u884c\u5b89\u88c5\u3002<\/p>\n<p>\u5728\u5b89\u88c5VScode\u65f6\uff0c\u53ef\u4ee5\u9009\u62e9\u52fe\u9009\u201c\u6dfb\u52a0\u5230\u8d44\u6e90\u7ba1\u7406\u5668\u7684\u6587\u4ef6\/\u6587\u4ef6\u5939\u53f3\u952e\u83dc\u5355\u4e2d\u7684[\u4f7f\u7528Code\u6253\u5f00]\u64cd\u4f5c\u201d\uff0c\u8fd9\u6837\u53ef\u4ee5\u76f4\u63a5\u901a\u8fc7\u53f3\u952e\u70b9\u51fb\u6587\u4ef6\u5939\u6765\u6253\u5f00\u3002\u975e\u5e38\u65b9\u4fbf\u3002<\/p>\n<p>\u53e6\u5916\uff0c\u5b89\u88c5\u4e00\u4e2a\u540d\u4e3a\u201cgit history\u201d\u7684\u6269\u5c55\u529f\u80fd\u4f1a\u5f88\u6709\u7528\u3002<\/p>\n<p>GitHub\uff1ahttps:\/\/github.com\/<br \/>\n\u5728GitHub\u4e0a\u6ce8\u518c\u8d26\u53f7\u4e5f\u53ef\u4ee5\u3002<\/p>\n<h4>\u8bbe\u7f6e\u5bc6\u7801<\/h4>\n<p>\u4e3a\u4e86\u65b9\u4fbf\u8d77\u89c1\uff0c\u53ef\u4ee5\u5728\u5730\u5740\u680f\u4e2d\u8f93\u5165\u201cgit-bash\u201d\uff0c\u7136\u540e\u5c06\u8def\u5f84\u6dfb\u52a0\u5230\u73af\u5883\u53d8\u91cf\u4e2d\uff0c\u4ee5\u76f4\u63a5\u5728\u5f53\u524d\u76ee\u5f55\u4e2d\u6253\u5f00\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u5728\u641c\u7d22\u6846\u4e2d\u8f93\u5165\u201cgit\u201d\uff0c\u53f3\u952e\u70b9\u51fb\u5e76\u9009\u62e9\u201c\u6253\u5f00\u6587\u4ef6\u4f4d\u7f6e\u201d\uff0c\u5e94\u8be5\u4f1a\u6709\u4e00\u4e2a\u5feb\u6377\u65b9\u5f0f\u6587\u4ef6\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u67e5\u627e\u539f\u59cb\u4f4d\u7f6e\uff08\u9ed8\u8ba4\u4e3a\uff1aC:\\Program Files\\Git\uff09\uff0c\u5c06\u8def\u5f84\u590d\u5236\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\u5728\u641c\u7d22\u6846\u4e2d\u8f93\u5165\u201c\u73af\u5883\u53d8\u91cf\u201d\uff0c\u6253\u5f00\u8bbe\u7f6e\u3002\u6253\u5f00\u73af\u5883\u53d8\u91cf\uff0c\u6dfb\u52a0\u5230\u201cPath\u201d\u3002<\/ol>\n<h4>\u6700\u521d\u7684\u8bbe\u7f6e<\/h4>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u8bf7\u6ce8\u518c\u7535\u5b50\u90ae\u4ef6\u548c\u5bc6\u7801<\/ol>\n<\/li>\n<\/ol>\n<p>git-bash<br \/>\n$ git config &#8211;global user.email &#8220;\u4f60\u7684\u7535\u5b50\u90ae\u4ef6&#8221;<br \/>\n$ git config &#8211;global user.name &#8220;\u4f60\u7684\u540d\u5b57&#8221;<\/p>\n<p>\u8bbe\u7f6eSSH\u901a\u4fe1<\/p>\n<p>cmd<br \/>\nrem \u5207\u6362\u5230\u7528\u6237\u76ee\u5f55<br \/>\ncd %userprofile%<br \/>\nrem \u751f\u6210\u5bc6\u94a5<br \/>\nssh-keygen -t &lt;\u5bc6\u94a5\u7c7b\u578b&gt; -C &#8220;&lt;\u4f60\u7684\u7535\u5b50\u90ae\u4ef6&gt;&#8221;<br \/>\nssh-keygen -t ed25519 -C &#8220;EMAIL&#8221;<\/p>\n<p>rem \u4f1a\u95ee\u4e00\u4e9b\u95ee\u9898\uff0c\u4f46\u90fd\u6309enter\u952e\u7ee7\u7eed<\/p>\n<p>\u6ca1\u6709\u6269\u5c55\u540d\u7684\u6587\u4ef6\uff08\u6587\u672c\u6570\u636e\uff09\u4e2d\u542b\u6709\u79c1\u94a5\uff0c.pub\u6587\u4ef6\u4e3a\u516c\u94a5\u3002<br \/>\n\u5728github\u7684\u8bbe\u7f6e\u4e2d\u7684SSHandGPGkeys\u90e8\u5206\u6dfb\u52a0sshkey\uff08&#8221;\u516c\u94a5&#8221;\uff09\u3002<br \/>\n\u8fd9\u662f\u4e0egithub\u4e4b\u95f4\u901a\u4fe1\u6240\u5fc5\u9700\u7684\uff0c\u56e0\u6b64\u6bcf\u53f0\u901a\u4fe1\u7684\u7535\u8111\u90fd\u5e94\u8be5\u6709\u3002<\/p>\n<p>cmd<br \/>\nrem \u8fdb\u884c\u8fde\u63a5\u6d4b\u8bd5<br \/>\nssh -T git@github.com<\/p>\n<p>rem \u5982\u679c\u4e00\u5f00\u59cb\u6ca1\u6709\u786e\u5b9a\u540d\u79f0\uff0c\u4f1a\u95ee\u4e00\u4e9b\u95ee\u9898\uff0c\u4f46\u9009\u62e9yes\u7ee7\u7eed\u5373\u53ef\u3002<\/p>\n<h1>\u57fa\u672c\u4f7f\u7528\u65b9\u6cd5<\/h1>\n<p>\u57fa\u672c\u4e0a<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u521b\u5efa\u5b58\u50a8\u5e93\uff08\u653e\u7f6e\u6e90\u4ee3\u7801\u7b49\u7684\u5730\u65b9\uff09\u6216\u514b\u9686<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u5728\u672c\u5730\u8fdb\u884c\u64cd\u4f5c<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u4fdd\u5b58\u66f4\u6539\u7684\u5dee\u5f02<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u4e0a\u4f20\u5230\u8fdc\u7a0b\uff08GitHub\uff09<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u4ece\u8fdc\u7a0b\u83b7\u53d6\u5176\u4ed6\u4eba\u7684\u66f4\u6539<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\u91cd\u590d\u6b65\u9aa42\u81f35\u3002<\/ol>\n<p>\u5728VScode\u4e2d\uff0c\u53ef\u4ee5\u4f7f\u7528Ctrl + Shift + G\u6253\u5f00Git\u7ba1\u7406\u754c\u9762\u3002<br \/>\n\u53ef\u4ee5\u4f7f\u7528Ctrl + Shift + @\u6253\u5f00\u63a7\u5236\u53f0\u7a97\u53e3\u3002\u901a\u8fc7\u63a7\u5236\u53f0\u7a97\u53e3\u53f3\u4e0a\u89d2\u9644\u8fd1\u7684\u4e0b\u7bad\u5934\uff0c\u53ef\u4ee5\u5c06\u63a7\u5236\u53f0\u7c7b\u578b\u66f4\u6539\u4e3aGit bash\u3002<br \/>\nGit bash\u4f1a\u663e\u793a\u5f53\u524d\u7684\u5de5\u4f5c\u5206\u652f\uff0c\u6240\u4ee5\u5f88\u597d\u7528\u3002<\/p>\n<p>\u6c47\u603b\u8be6\u7ec6\u7684\u547d\u4ee4<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u521b\u5efa\u6216\u514b\u9686\u5b58\u50a8\u5e93\uff08\u653e\u7f6e\u6e90\u4ee3\u7801\u7b49\u7684\u4f4d\u7f6e\uff09\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol># \u521b\u5efa\u5b58\u50a8\u5e93<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>$ git init<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol># \u5c06\u672c\u5730\u5b58\u50a8\u5e93\u4e0eGitHub\u4e0a\u7684\u8fdc\u7a0b\u5b58\u50a8\u5e93\u5173\u8054\u8d77\u6765<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>$ git remote add &lt;\u8fdc\u7a0b\u5b58\u50a8\u5e93\u540d\u79f0\uff0c\u5728\u5927\u591a\u6570\u60c5\u51b5\u4e0b\u4e3aorigin&gt;<\/ol>\n<\/li>\n<\/ol>\n<p># \u4eceGitHub\u514b\u9686\u8fdc\u7a0b\u5b58\u50a8\u5e93<br \/>\n$ git clone<\/p>\n<p># \u662fGitHub\u5b58\u50a8\u5e93\u9875\u9762\u4e0a\u6309\u4e0b\u201c&lt;&gt; Code \u25bc\u201d\u540e\u51fa\u73b0\u7684HTTPS\u3001SSH\u6216GitHub CLI\u7684\u526f\u672c<\/p>\n<p>\u5728\u672c\u5730\u8fdb\u884c\u5de5\u4f5c<br \/>\n\u4fdd\u5b58\u66f4\u6539\u5dee\u5f02<\/p>\n<p>bash<br \/>\n# \u5c06\u66f4\u6539\u5dee\u5f02\u4fdd\u5b58\u4e3a\u4e8c\u8fdb\u5236\u6587\u4ef6<br \/>\n$ git add &lt;\u5df2\u66f4\u6539\u7684\u6587\u4ef6&gt;<br \/>\n# \u5982\u679c\u8981\u6279\u91cf\u9009\u62e9\u66f4\u6539\u7684\u6587\u4ef6\uff0c\u8bf7\u4f7f\u7528 .<br \/>\n# git add .<\/p>\n<p># \u5c06\u66f4\u6539\u5dee\u5f02\u4fdd\u5b58\u4e3a\u63d0\u4ea4\uff0c\u5e76\u66f4\u65b0\u8fdc\u7a0b\u5b58\u50a8\u5e93\u3002<br \/>\n$ git commit -m &#8220;&lt;\u63d0\u4ea4\u6d88\u606f&gt;&#8221;<\/p>\n<p>\u4e0a\u4f20\u5230\u8fdc\u7a0b\uff08GitHub\uff09<\/p>\n<p>bash<br \/>\n# \u5c06\u66f4\u65b0\u540e\u7684\u672c\u5730\u5b58\u50a8\u5e93\u4e0a\u8f7d\u5230\u8fdc\u7a0b\u5b58\u50a8\u5e93<br \/>\n$ git push origin &lt;\u672c\u5730\u5206\u652f\u540d&gt;:&lt;\u8fdc\u7a0b\u5206\u652f\u540d&gt;<br \/>\n# origin \u662f\u9ed8\u8ba4\u547d\u540d\u7528\u4e8e\u5173\u8054\u8fdc\u7a0b\u5b58\u50a8\u5e93\u7684\u540d\u79f0<br \/>\n# \u5982\u679c\u672c\u5730\u548c\u8fdc\u7a0b\u547d\u540d\u76f8\u540c\uff0c\u5219\u53ef\u4ee5\u7b80\u5199\u5982\u4e0b<br \/>\n$ git push origin &lt;\u5206\u652f\u540d&gt;<br \/>\n# \u5373\u4f7f\u8fdc\u7a0b\u4e0d\u5b58\u5728\uff0c\u4e5f\u4f1a\u88ab\u4e0a\u4f20\u3002<\/p>\n<p>\u4ece\u8fdc\u7a0b\u83b7\u53d6\u4ed6\u4eba\u7684\u66f4\u6539\u3002<\/p>\n<p>bash<br \/>\n# \u5c06\u4ed6\u4eba\u5728\u8fdc\u7a0b\u4e0a\u4f20\u7684\u66f4\u6539\u6620\u5c04\u5230\u672c\u5730<br \/>\n$ git pull origin &lt;\u5206\u652f\u540d&gt;<\/p>\n<p>\u9664\u4e86\u8fd9\u4e9b\u4e4b\u5916\uff0c\u5728\u8fdb\u884c\u5de5\u4f5c\u65f6\u8fd8\u9700\u8981&#8221;\u5207\u6362\u5206\u652f&#8221;\u3002<\/p>\n<p>\u5206\u652f\u81ea\u8eab\u7684\u8bf4\u660e\u5728\u4e0b\u9762\u7684\u6982\u5ff5\u6761\u76ee\u4e2d\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u79fb\u52d5<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u5207\u308a\u65b9<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u30de\u30fc\u30b8<\/ul>\n<h3>\u8fc1\u79fb<\/h3>\n<p>\u5207\u6362\u5230\u8fdb\u884c\u4f5c\u4e1a\u7684\u5206\u652f\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"c\"># \u30ed\u30fc\u30ab\u30eb\u30d6\u30e9\u30f3\u30c1\u306e\u5207\u308a\u66ff\u3048\u3068\u5909\u66f4\u306e\u53d6\u308a\u6d88\u3057<\/span>\r\n<span class=\"nv\">$ <\/span>git checkout &lt;\u30d6\u30e9\u30f3\u30c1\u540d&gt;\r\n<span class=\"c\"># 2019\u5e74\u306eGit 2.23\u306e\u30ea\u30ea\u30fc\u30b9\u3067\u8ffd\u52a0\u3055\u308c\u305fswitch\u306e\u307b\u3046\u304c\u3044\u3044\u3089\u3057\u3044<\/span>\r\n<span class=\"nv\">$ <\/span>git switch &lt;\u30d6\u30e9\u30f3\u30c1\u540d&gt;\r\n<\/code><\/pre>\n<h3>\u5207\u6cd5 (qi\u0113 f\u0101)<\/h3>\n<p>\u589e\u52a0\u6d41\u7a0b\uff0c\u9650\u5236\u8303\u56f4\uff0c\u8fdb\u884c\u5de5\u4f5c\u3002<br \/>\n\u4e00\u4e2a\u4eceA\u5206\u652f\u5207\u6362\u5230B\u5206\u652f\u7684\u4f8b\u5b50\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"c\"># A\u30d6\u30e9\u30f3\u30c1\u304b\u3089B\u30d6\u30e9\u30f3\u30c1\u3092\u5207\u308a\u305f\u3044\u3068\u304d\u306f\u3001A\u30d6\u30e9\u30f3\u30c1\u306b\u5c45\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<\/span>\r\n<span class=\"nv\">$ <\/span>git switch &lt;A\u30d6\u30e9\u30f3\u30c1&gt;\r\n<span class=\"nv\">$ <\/span>git branch &lt;B\u30d6\u30e9\u30f3\u30c1&gt;\r\n\r\n<span class=\"c\"># \u30d6\u30e9\u30f3\u30c1\u306e\u4f5c\u6210\u3068\u5207\u308a\u66ff\u3048\u3092\u540c\u6642\u306b\u3002<\/span>\r\n<span class=\"nv\">$ <\/span>git checkout &lt;\u30d6\u30e9\u30f3\u30c1\u540d&gt;\r\n<span class=\"c\"># \u4ee5\u4e0b\u3068\u540c\u3058<\/span>\r\n<span class=\"nv\">$ <\/span>git branch &lt;\u30d6\u30e9\u30f3\u30c1\u540d&gt;\r\n<span class=\"nv\">$ <\/span>git checkout &lt;\u30d6\u30e9\u30f3\u30c1\u540d&gt;\r\n<span class=\"c\"># switch \u3067\u66f8\u304f\u306a\u3089<\/span>\r\n<span class=\"nv\">$ <\/span>git switch <span class=\"nt\">-c<\/span> &lt;\u30d6\u30e9\u30f3\u30c1\u540d&gt;\r\n<\/code><\/pre>\n<h3>\u5408\u5e76<\/h3>\n<p>\u57fa\u672c\u4e0a\u5c31\u662f\u5c07B\u5206\u652f\u7684\u5167\u5bb9\u5408\u4f75\u5230A\u5206\u652f\u4e2d\uff0c\u9019\u6a23\u505a\u3002<br \/>\n\u8209\u4f8b\u4f86\u8aaa\uff0c\u5c07B\u5206\u652f\u5408\u4f75\u5230A\u5206\u652f\u4e2d\u3002<br \/>\n\u6307\u5b9a\u5408\u4f75\u7684\u65b9\u5411\uff0c\u5373\u6307\u5b9a\u63a5\u6536\u65b9\u548c\u88ab\u63a5\u6536\u65b9\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"c\"># A\u30d6\u30e9\u30f3\u30c1\u306bB\u30d6\u30e9\u30f3\u30c1\u3092\u30de\u30fc\u30b8\u3057\u305f\u3044\u3068\u304d\u306f\u3001A\u30d6\u30e9\u30f3\u30c1\u306b\u5c45\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<\/span>\r\n<span class=\"nv\">$ <\/span>git switch &lt;A\u30d6\u30e9\u30f3\u30c1&gt;\r\n<span class=\"nv\">$ <\/span>git merge &lt;B\u30d6\u30e9\u30f3\u30c1&gt;\r\n<\/code><\/pre>\n<p>\u542c\u8bf4\u9ea6\u742a\u5927\u81f4\u5206\u4e3a\u4e24\u79cd\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"c\"># A\u30d6\u30e9\u30f3\u30c1\u304b\u3089B\u30d6\u30e9\u30f3\u30c1\u3092\u5207\u3063\u305f\u3002<\/span>\r\n<span class=\"nv\">$ <\/span>git switch Abranch\r\n<span class=\"nv\">$ <\/span>git branch Bbranch\r\n<\/code><\/pre>\n<p>\u5982\u679c\u5728B\u5206\u652f\u88ab\u526a\u5207\u4e4b\u540e\uff0cA\u5206\u652f\u6ca1\u6709\u66f4\u65b0\u63d0\u4ea4\uff0c\u5219\u53ea\u9700\u5c06B\u5206\u652f\u7684\u63d0\u4ea4\u96c6\u5408\u6dfb\u52a0\u5230A\u5206\u652f\u7684\u6700\u524d\u7aef\uff0c\u8fd9\u5c31\u662f\u5feb\u8fdb\u5408\u5e76\u3002<br \/>\n\u5982\u679c\u6709\u66f4\u65b0\uff0c\u5219\u4e0d\u4f1a\u4f7f\u7528\u5feb\u8fdb\u5408\u5e76\uff0c\u800c\u662f\u4f7f\u7528\u975e\u5feb\u8fdb\u5408\u5e76\u3002<\/p>\n<h1>\u5404\u79cd\u6982\u5ff5\u548c\u672f\u8bed<\/h1>\n<p>\u5982\u679c\u80fd\u591f\u5145\u5206\u7406\u89e3\u5b58\u50a8\u5e93\u548c\u5206\u652f\u7b49\u6574\u4f53\u6982\u5ff5\uff0c\u6682\u65f6\u6765\u8bf4\u53ef\u80fd\u4f1a\u5f88\u4e0d\u9519\u3002<\/p>\n<h2>\u4ed3\u5e93<\/h2>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2e6937434c4406c544ca\/40-0.png\" alt=\"repository.png\" \/><\/div>\n<h3>\u8fdc\u7a0b\u5b58\u50a8\u5e93<\/h3>\n<p>\u6211\u628a\u5b58\u50a8\u5e93\u653e\u5728\u4e86\u50cfGitHub\u8fd9\u6837\u7684Web\u6258\u7ba1\u670d\u52a1\u4e0a\u3002<br \/>\n\u901a\u8fc7\u8fd9\u91cc\uff0c\u6211\u53ef\u4ee5\u534f\u8c03\u5206\u6563\u7684\u5ba2\u6237\u7aef\u7684\u7248\u672c\u548c\u8fdb\u5c55\u3002<\/p>\n<h3>\u672c\u5730\u4ed3\u5e93 d\u00ec<\/h3>\n<p>\u5728\u672c\u5730\u5f00\u53d1\u73af\u5883\u4e2d\u7684\u4ee3\u7801\u5e93\u3002Git\u80fd\u591f\u68c0\u6d4b\u51fa\u4e0e\u8fd9\u91cc\u7684\u5dee\u5f02\u5e76\u5c06\u5176\u79f0\u4e3a&#8221;\u53d8\u66f4&#8221;\u3002<\/p>\n<p>\u987a\u4fbf\u63d0\u4f9b\u6dfb\u52a0\u3001\u63d0\u4ea4\u548c\u63a8\u9001\u4e4b\u95f4\u7684\u5173\u7cfb\u793a\u610f\u56fe\u3002<\/p>\n<h4>\u5de5\u4f5c\u76ee\u9304<\/h4>\n<p>.git\u5b58\u653e\u7684\u76ee\u5f55\u3002<br \/>\n\u6253\u5f00\u8fd9\u4e2a\u6587\u4ef6\u5939\u5728VScode\u4e2d\uff08\u6309\u4e0bctrl + k, ctrl + o\uff09\uff0c\u8fdb\u884c\u5b9e\u9645\u64cd\u4f5c\u3002<\/p>\n<p>\u901a\u8fc7\u4f7f\u7528 git add &lt;\u76ee\u6807\u6587\u4ef6&gt; \u5c06\u7531\u4f5c\u4e1a\u5f15\u8d77\u7684\u201c\u66f4\u6539\u201d\u4fdd\u5b58\u4e3a\u4e8c\u8fdb\u5236\u6587\u4ef6\u5230\u6682\u5b58\u533a\u57df\u3002<\/p>\n<h4>\u7d22\u5f15\u7684\u6f14\u793a\u533a\u57df<\/h4>\n<p>\u901a\u8fc7\u6dfb\u52a0\u5c06\u5dee\u5f02\u548c\u66f4\u6539\u53d1\u9001\u81f3\u4fdd\u5b58\u4f4d\u7f6e\u3002<br \/>\n\u5177\u4f53\u800c\u8a00\uff1a<br \/>\n.git\/index\uff1a\u7d22\u5f15\u6587\u4ef6<br \/>\n.git\/objects\/\uff1a\u5b58\u653e\u5e93\u7684\u6570\u636e\u5e93\u6587\u4ef6\u3002<\/p>\n<p>\u901a\u8fc7\u4f7f\u7528git commit -m &#8220;&lt;\u63d0\u4ea4\u4fe1\u606f&gt;&#8221;\u5bf9\u8fd9\u4e2a\u5dee\u5206\u8fdb\u884c\u63d0\u4ea4\uff0c\u5c31\u53ef\u4ee5\u521b\u5efa\u63d0\u4ea4\u5e76\u66f4\u65b0\u672c\u5730\u4ed3\u5e93\u3002<\/p>\n<h4>\u672c\u5730\u4ee3\u7801\u5e93<\/h4>\n<p>\u901a\u8fc7\u63d0\u4ea4\u751f\u6210\u7684\u63d0\u4ea4\u5c06\u66f4\u65b0\u6700\u65b0\u63d0\u4ea4\u3002<\/p>\n<p>\u901a\u8fc7\u6267\u884c`git push origin &lt;\u5206\u652f\u540d&gt;`\uff0c\u53ef\u4ee5\u5c06\u5206\u652f\u7684\u66f4\u65b0\u540c\u6b65\u5230\u8fdc\u7a0b\u4ed3\u5e93\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2e6937434c4406c544ca\/55-0.png\" alt=\"add commit push.png\" \/><\/div>\n<h2>\u5206\u652f<\/h2>\n<p>\u5728Git\u4e2d\uff0c\u53d8\u66f4\u5386\u53f2\u662f\u4ee5\u63d0\u4ea4(commit)\u4e3a\u5355\u4f4d\u8fdb\u884c\u7ba1\u7406\u7684\u3002<br \/>\n\u63d0\u4ea4(commit)\u4ee5\u4e32\u8054\u7684\u65b9\u5f0f\u5b58\u5728\uff0c\u5e76\u901a\u8fc7\u5206\u652f(branch)\u6765\u6307\u5b9a\u548c\u7ba1\u7406\u4ece\u63d0\u4ea4(commit)\u4e2d\u8fdb\u884c\u7684\u64cd\u4f5c\u6d41\u7a0b\u3002\u5206\u652f(branch)\u7684\u610f\u601d\u5c31\u662f\u6811\u679d\u6216\u652f\u6d41\u3002<\/p>\n<p>\u4e2d\u56fd\u7684\u672c\u5730\u7ffb\u8bd1\uff1a<br \/>\n\u6240\u8c13\u5206\u652f\u6a21\u578b\uff0c\u5373\u6709\u4e00\u5b9a\u7684\u89c4\u5b9a\u6765\u51b3\u5b9a\u5206\u652f\u7684\u5207\u5272\u65b9\u5f0f\u3002<br \/>\n\u8fd9\u6b21\u6211\u60f3\u8c08\u4e00\u4e0bgit-flow\u3002<br \/>\n\u5b83\u4ee5develop\u5206\u652f\u4e3a\u4e2d\u5fc3\uff0c\u7528\u6237\u4eec\u901a\u8fc7\u5404\u81ea\u7684\u529f\u80fd\u5206\u652f\/\u4e3b\u8981\u529f\u80fd\u5355\u5143\u6765\u8fdb\u884c\u5de5\u4f5c\u3002<br \/>\n\u4f5c\u4e3a\u4e00\u4e2a\u63d2\u4ef6\uff0cgit-flow\u5e94\u8be5\u5df2\u7ecf\u88ab\u5305\u542b\u5728\u5185\u4e86\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2e6937434c4406c544ca\/59-0.png\" alt=\"git-flow.png\" \/><\/div>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">main<\/ul>\n<\/li>\n<\/ul>\n<p>\u30ea\u30ea\u30fc\u30b9\u7528\u306e\u30d6\u30e9\u30f3\u30c1\u3002<br \/>\n\u57fa\u672c\u7684\u306b\u89e6\u3089\u306a\u3044\u3002<\/p>\n<p>develop<\/p>\n<p>\u3053\u306e\u8ef8\u3092\u4e2d\u5fc3\u306b\u958b\u767a\u3002<br \/>\n\u8907\u6570\u958b\u767a\u306a\u3089\u7ba1\u7406\u8005\u4ee5\u5916\u306f\u89e6\u3089\u306a\u3044\u3002<\/p>\n<p>feature\/<\/p>\n<p>\u4f5c\u696d\u3084\u6a5f\u80fd\u3054\u3068\u306b\u5207\u308b\u3002\u4f5c\u696d\u3059\u308b\u30e6\u30fc\u30b6\u30fc\u306f\u3053\u306e\u30d6\u30e9\u30f3\u30c1\u3092\u5207\u308b\u3002<br \/>\n\u4e00\u901a\u308a\u4f5c\u696d\u3057\u305f\u3089\u30d7\u30c3\u30b7\u30e5\u3057\u3066\u30de\u30fc\u30b8\u30ea\u30af\u30a8\u30b9\u30c8\u3059\u308b\u3002<br \/>\nfeature\u306f\u6d88\u3057\u3066\u3057\u307e\u3063\u3066\u3088\u3044\u3002<br \/>\n\u6a5f\u80fd\u306e\u610f\u5473\u305d\u306e\u307e\u307e\u3002<\/p>\n<p>\u5176\u4ed6\u7684<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">hotfix<\/ul>\n<\/li>\n<\/ul>\n<p>\u30ea\u30ea\u30fc\u30b9\u5f8c\u306e\u3048\u3050\u3044\u30d0\u30b0\u3068\u304b\u7dca\u6025\u3067\u3057\u3070\u304b\u306a\u3042\u304b\u3093\u3084\u3064\u3002<br \/>\nmain\u304b\u3089\u76f4\u63a5\u5207\u3063\u3066\u4fee\u6b63\u5f8cmain\u3068develop\u305d\u308c\u305e\u308c\u306b\u30de\u30fc\u30b8\u3002<\/p>\n<p>release<\/p>\n<p>\u30d7\u30ec\u30ea\u30ea\u30fc\u30b9\u7528\u3002<br \/>\n\u30ea\u30ea\u30fc\u30b9\u4e88\u5b9a\u306e\u6a5f\u80fd\u3084\u30d0\u30b0\u30d5\u30a3\u30c3\u30af\u30b9\u304c\u7d42\u4e86\u3057\u305f\u72b6\u614b\u306edevelop\u304b\u3089\u5207\u308b\u3002<br \/>\n\u6e96\u5099\u304c\u6574\u3063\u305f\u3089main\u3068develop\u305d\u308c\u305e\u308c\u306b\u30de\u30fc\u30b8\u3059\u308b\u3002<\/p>\n<p>\u8fd8\u6709\u5176\u4ed6\u7684\u9009\u62e9\u3002<\/p>\n<h2>\u8ffd\u8e2a\u5206\u652f<\/h2>\n<p>\u5728Git\u4e2d\uff0c\u5f53\u6709\u66f4\u65b0\u65f6\uff0c\u5b83\u4f1a\u68c0\u6d4b\u5230\uff0c\u4f46\u5b83\u5728\u76d1\u89c6\u4ec0\u4e48\u4ee5\u53ca\u4e0e\u4f55\u8fdb\u884c\u6bd4\u8f83\u5462\uff1f\u53ef\u4ee5\u53c2\u8003\u4e0b\u56fe\u3002<br \/>\n\u8fd9\u5c31\u662f\u8fdc\u7a0b\u8ffd\u8e2a\u5206\u652f\u548c\u4e0a\u6e38\u5206\u652f\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2e6937434c4406c544ca\/66-0.png\" alt=\"\u8ffd\u8de1.png\" \/><\/div>\n<h2>\u8d77\u6e90<\/h2>\n<p>\u901a\u5e38\u88ab\u79f0\u4e3a\u8fdc\u7a0b\u540d\u79f0\u3002\u4e60\u60ef\u4e0a\u5e38\u7528\u7684\u540d\u79f0\u662f&#8221;origin&#8221;\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git remote add origin &lt;\u30ea\u30e2\u30fc\u30c8\u306eURL&gt;\r\n<\/code><\/pre>\n<p>\u5f53\u8fd0\u884c\u65f6\u7684\u8d77\u6e90\u3002<br \/>\n\u8fd9\u91cc\u5c06URL\u653e\u5728\u540d\u4e3aorigin\u7684\u53d8\u91cf\u4e2d\u6765\u8868\u793a\u3002<\/p>\n<h2>\u63d0\u4ea4\u6d88\u606f<\/h2>\n<p>\u63d0\u4ea4\u65f6\u4e00\u5b9a\u8981\u8bbe\u7f6e\u6d88\u606f\u3002\u57fa\u672c\u4e0a\uff0c\u5728\u62ec\u53f7\u5185\u5199\u4e0a\u63d0\u4ea4\u7c7b\u578b\uff0c\u7136\u540e\u5728\u540e\u9762\u5199\u4e0a\u6ce8\u91ca\uff0c\u4f8b\u5982&#8221;[hoge]piyopiyo&#8221;\u3002\u5199\u4e0a\u4e3a\u4ec0\u4e48\u8fdb\u884c\u4e86\u8fd9\u4e2a\u66f4\u6539\uff0c\u6bd4\u901a\u8fc7\u67e5\u770b\u4ee3\u7801\u80fd\u7406\u89e3\u7684\u6ce8\u91ca\u66f4\u597d\u3002 \u4f8b\u5982\uff1a[update]\u4e3a\u4e86\uff5e\uff0c\u5c06\uff5e\u4fee\u6b63\u4e3a\uff5e\u3002<\/p>\n<p>\u8bc4\u8bba\u53ef\u4ee5\u5199\u591a\u884c\u3002<br \/>\n\u5982\u679c\u8303\u56f4\u6bd4\u8f83\u5e7f\u7684\u8bdd\uff0c\u7528\u82f1\u8bed\u5199\u53ef\u80fd\u66f4\u597d\u3002<\/p>\n<p>\u6574\u7406\u63d0\u4ea4\u7c7b\u578b\u3002<\/p>\n<p>add: \u65b0\u898f\u30d5\u30a1\u30a4\u30eb<\/p>\n<p>feat: \u65b0\u3057\u3044\u6a5f\u80fd<\/p>\n<p>update: \u6a5f\u80fd\u4fee\u6b63<\/p>\n<p>fix: \u4e0d\u5177\u5408\u30d0\u30b0\u4fee\u6b63<\/p>\n<p>remove: \u524a\u9664<\/p>\n<p>revert: \u5909\u66f4\u53d6\u308a\u6d88\u3057<\/p>\n<p>docs: \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306e\u307f\u306e\u5909\u66f4<\/p>\n<p>refactor: \u4f7f\u7528\u306b\u5f71\u97ff\u306e\u306a\u3044\u30b3\u30fc\u30c9\u4fee\u6b63\u3002<\/p>\n<p>style: \u4f53\u88c1\u3092\u6574\u3048\u305f\u3002\u7a7a\u767d\u3068\u304b\u30a4\u30f3\u30c7\u30f3\u30c8\u3068\u304b\u30bb\u30df\u30b3\u30ed\u30f3\u3068\u304b<\/p>\n<p>perf: \u30d1\u30d5\u30a9\u30fc\u30de\u30f3\u30b9\u5411\u4e0a<\/p>\n<p>test: \u3066\u3059\u3068<\/p>\n<h2>\u62c9<\/h2>\n<p>\u4f7f\u7528 fetch \u547d\u4ee4\u6765\u83b7\u53d6\u8fdc\u7a0b\u8ffd\u8e2a\u5206\u652f\u548c\u8fdc\u7a0b\u5206\u652f\u4e4b\u95f4\u7684\u5dee\u5f02\uff0c\u5e76\u5c06\u8fdc\u7a0b\u8ffd\u8e2a\u5206\u652f\u7684\u5185\u5bb9\u5408\u5e76\u5230\u5de5\u4f5c\u5206\u652f\u4ee5\u8fdb\u884c\u66f4\u65b0\u3002\u800c pull \u547d\u4ee4\u80fd\u591f\u540c\u65f6\u6267\u884c\u8fd9\u4e24\u4e2a\u64cd\u4f5c\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"c\"># \u30ea\u30e2\u30fc\u30c8\u304b\u3089\u30ea\u30e2\u30fc\u30c8\u8ffd\u8de1\u30d6\u30e9\u30f3\u30c1\u306b\u66f4\u65b0\u3092\u843d\u3068\u3059<\/span>\r\n<span class=\"nv\">$ <\/span>git fetch origin &lt;\u30d6\u30e9\u30f3\u30c1\u540d&gt;\r\n<span class=\"c\"># \u4e0a\u6d41\u306e\u30ea\u30e2\u30fc\u30c8\u8ffd\u8de1\u30d6\u30e9\u30f3\u30c1\u3092\u4f5c\u696d\u30d6\u30e9\u30f3\u30c1\u306b\u30de\u30fc\u30b8\u3059\u308b<\/span>\r\n<span class=\"nv\">$ <\/span>git merge origin\/&lt;\u30d6\u30e9\u30f3\u30c1\u540d&gt;\r\n<\/code><\/pre>\n<h2>\u5408\u5e76\u8bf7\u6c42\uff08\u62c9\u53d6\u8bf7\u6c42\uff09<\/h2>\n<p>\u8fd9\u4e0d\u4ec5\u4ec5\u662fGit\uff0c\u66f4\u662f\u7531\u6258\u7ba1\u670d\u52a1\u63d0\u4f9b\u7684\u529f\u80fd\u3002<br \/>\n\u5bf9\u4e8e\u4e2a\u4eba\u5f00\u53d1\u6765\u8bf4\uff0c\u5408\u5e76\u53ef\u80fd\u4e0d\u662f\u4e00\u4e2a\u95ee\u9898\uff0c\u4f46\u5bf9\u4e8e\u591a\u4eba\u5f00\u53d1\u7684\u60c5\u51b5\uff0c\u901a\u8fc7\u5ba1\u67e5\u53ef\u4ee5\u907f\u514d\u51b2\u7a81\uff0c\u5e76\u8bb0\u5f55\u4ea4\u6d41\u5185\u5bb9\u3002<\/p>\n<h3>\u5728GitHub\u4e0a\u7684\u65b9\u6cd5<\/h3>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u6309\u4e0bpush\u6309\u94ae\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u4ece\u5b58\u50a8\u5e93\u83dc\u5355\u5c4f\u5e55\u4e2d\u6309\u4e0bPull requests\u3002<\/ol>\n<\/li>\n<\/ol>\n<p>\u6309\u4e0bNew pull request\u3002<br \/>\n\u9009\u62e9base\u548ccompare\u5206\u652f\u3002<\/p>\n<p>\u4f7f\u7528Create pull request\u521b\u5efa\u8bf7\u6c42\u3002<br \/>\n\u586b\u5199\u6807\u9898\u548c\u8bc4\u8bba\u6765\u8bf7\u6c42\u3002<br \/>\n\u7ba1\u7406\u5458\u4f1a\u67e5\u770bCommits\u548cFiles changed\u4ee5\u53ca\u5bf9Pull requests\u8fdb\u884c\u8bc4\u8bba\u3002<br \/>\n\u7ba1\u7406\u5458\u5728\u5b8c\u6210\u5ba1\u67e5\u540e\uff0c\u6309\u4e0bConfirm merge\u6765\u5408\u5e76\u3002<\/p>\n<h3>&#8220;.gitignore&#8221;\u7684\u4e2d\u6587\u91ca\u4e49<\/h3>\n<p>\u5982\u679c\u4f60\u4e0d\u60f3\u628a\u8fd9\u4e2a\u6587\u4ef6\u63d0\u4ea4\u5230git\u4e2d\uff0c\u4e5f\u4e0d\u60f3\u628a\u4e0d\u60f3\u8981\u7684\u6587\u4ef6\u4e0a\u4f20\u5230github\u4e0a\uff0c\u4f60\u53ef\u4ee5\u5c06\u5b83\u4eec\u4ecegit\u7684\u8ddf\u8e2a\u4e2d\u6392\u9664\u6389\u3002<br \/>\n\u4f60\u8fd8\u53ef\u4ee5\u4f7f\u7528\u901a\u914d\u7b26\u3002<br \/>\n\u4f60\u8fd8\u53ef\u4ee5\u7528\u201c#\u201d\u8fdb\u884c\u6ce8\u91ca\u3002<\/p>\n<pre class=\"post-pre\"><code># \/\u3092\u542b\u307e\u306a\u3044\r\n# .gitignore\u304c\u914d\u7f6e\u3055\u308c\u3066\u3044\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u4e0b\u306b\u3042\u308b\u3053\u306e\u540d\u524d\u306e\u30d5\u30a1\u30a4\u30eb\u30d5\u30a9\u30eb\u30c0\u3092\u7121\u8996\u3059\u308b\u3002\r\nfile_or_folder\r\n\r\n# \u672b\u5c3e\u306b\u306e\u307f\/\u3092\u542b\u3080\r\n# .gitignore\u304c\u914d\u7f6e\u3055\u308c\u3066\u3044\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u4e0b\u306b\u3042\u308b\u3053\u306e\u540d\u524d\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u7121\u8996\u3059\u308b\u3002\r\ndirectory\/\r\n# \u5f8c\u8ff0\u306e!\u3068\u306e\u76f8\u6027\u304c\u60aa\u3044\u304b\u3089\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u81ea\u4f53\u3092\u9664\u5916\u3059\u308b\u3088\u308a\r\ndirecotry\/*\r\n# \u306e\u3088\u3046\u306b\u3057\u305f\u307b\u3046\u304c\u3044\u3044\u3002\r\n\r\n# \u672b\u5c3e\u4ee5\u5916\u306b\u306e\u307f\/\u3092\u542b\u3080\r\n# .gitignore\u304c\u914d\u7f6e\u3055\u308c\u3066\u3044\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u3059\u308b\u76f8\u5bfe\u30d1\u30b9\u3067\u6307\u5b9a\u3055\u308c\u308b\u30d5\u30a1\u30a4\u30eb\u30d5\u30a9\u30eb\u30c0\u3092\u7121\u8996\u3059\u308b\u3002\r\n\/path\/pathpath\/file_or_folder\r\n\r\n# \u672b\u5c3e\u4ee5\u5916\u3082\u672b\u5c3e\u306b\u3082\/\u3092\u542b\u3080\r\n# .gitignore\u304c\u914d\u7f6e\u3055\u308c\u3066\u3044\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u30ab\u30ec\u30f3\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u3059\u308b\u76f8\u5bfe\u30d1\u30b9\u3067\u6307\u5b9a\u3055\u308c\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u7121\u8996\u3059\u308b\u3002\r\n\/path\/pathpath\/dirctory\/\r\n\r\n# !\u3092\u5148\u982d\u306b\u7f6e\u304f\r\n# \u4f8b\u5916\u30fb\u7121\u8996\u3057\u306a\u3044\u3092\u8868\u3059\u3002\u4e0a\u3067\u306e\u8a2d\u5b9a\u3092\u4e0a\u66f8\u304d\u3067\u304d\u308b\u3002\r\n# \u305f\u3060\u3057\u30d5\u30a9\u30eb\u30c0\u4f8b\u5916\u306f\u4e0a\u66f8\u304d\u3067\u304d\u306a\u3044\u3002\r\n! path \r\n! directory\/*.ext\r\n\r\n# \u7a7a\u884c\u3084# \u3067\u59cb\u307e\u308b\u884c\r\n# \u30b3\u30e1\u30f3\u30c8\u3068\u3057\u3066\u8a8d\u8b58\r\n# test line\r\n\r\n\r\n<\/code><\/pre>\n<p>git\u53ea\u8ffd\u8e2a\u6587\u4ef6\uff0c\u65e0\u6cd5\u5c06\u7a7a\u6587\u4ef6\u5939\u5305\u542b\u5728\u4ed3\u5e93\u4e2d\u3002<br \/>\n\u8981\u8ffd\u8e2a\u7a7a\u6587\u4ef6\u5939\uff0c\u9700\u8981\u5728\u5176\u4e2d\u6dfb\u52a0.gitignore\u6587\u4ef6\u3002<\/p>\n<pre class=\"post-pre\"><code>! .gitignore\r\n<\/code><\/pre>\n<p>\u53ef\u4ee5\u901a\u8fc7\u505a\u67d0\u4e8b\u6765\u6a21\u62df\u8ffd\u8e2a\u3002<\/p>\n<h1>\u6307\u4ee4\u603b\u7ed3<\/h1>\n<pre class=\"post-pre\"><code># \u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u72b6\u6cc1\u3092\u78ba\u8a8d\r\n$ git status\r\n\r\n# \u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u30ed\u30fc\u30ab\u30eb\u306b\u30af\u30ed\u30fc\u30f3\r\n$ git clone &lt;URL&gt;\r\n\r\n# \u7279\u5b9a\u306e\u30d6\u30e9\u30f3\u30c1\u3092\u6307\u5b9a\u3057\u3066\u30af\u30ed\u30fc\u30f3\r\n$ git clone &lt;URL&gt; -b &lt;\u843d\u3068\u3057\u305f\u3044\u30d6\u30e9\u30f3\u30c1\u540d&gt;\r\n\r\n# \u5dee\u5206\u3092\u30b9\u30c6\u30fc\u30b8\u30f3\u30b0\u9818\u57df\u306b\u30d0\u30a4\u30ca\u30ea\u3068\u3057\u3066\u4fdd\u5b58\r\n$ git add &lt;\u5bfe\u8c61\u306e\u30d5\u30a1\u30a4\u30eb\u3002 \".\" \u3067\u6307\u5b9a\u3059\u308b\u3068\u3059\u3079\u3066&gt;\r\n\r\n# \u5dee\u5206\u306b\u540d\u524d\u3092\u4ed8\u3051\u3066\u30b3\u30df\u30c3\u30c8\u3068\u3057\u3066\u4fdd\u5b58\r\n$ git commmit -m \"&lt;\u30b3\u30df\u30c3\u30c8\u30e1\u30c3\u30bb\u30fc\u30b8&gt;\"\r\n\r\n# \u30b3\u30df\u30c3\u30c8\u3092\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u53cd\u6620\u3055\u305b\u308b\r\n$ git push origin &lt;\u30ed\u30fc\u30ab\u30eb\u30d6\u30e9\u30f3\u30c1\u540d&gt;:&lt;\u30ea\u30e2\u30fc\u30c8\u30d6\u30e9\u30f3\u30c1\u540d&gt;\r\n# \u30ed\u30fc\u30ab\u30eb\u3068\u30ea\u30e2\u30fc\u30c8\u306e\u540d\u524d\u304c\u540c\u3058\u306a\u3089\u7701\u7565\u3055\u308c\u308b\r\n$ git push origin &lt;\u30d6\u30e9\u30f3\u30c1\u540d&gt;\r\n\r\n# \u30ed\u30fc\u30ab\u30eb\u30d6\u30e9\u30f3\u30c1\u4e00\u89a7\r\n$ git branch\r\n\r\n# \u30ea\u30e2\u30fc\u30c8\u8ffd\u8de1\u30d6\u30e9\u30f3\u30c1\u3092\u542b\u3080\u30ed\u30fc\u30ab\u30eb\u30d6\u30e9\u30f3\u30c1\u4e00\u89a7\r\n$ git branch -a\r\n# \u3053\u306e\u969b\u3001\u30ea\u30e2\u30fc\u30c8\u306e\u30d6\u30e9\u30f3\u30c1\u304c\u53cd\u6620\u3055\u308c\u306a\u3044\u5834\u5408\u304c\u3042\u308b\u3002\u305d\u306e\u969b\u306f git ls-remote \u3092\u4f7f\u3063\u3066\u30ea\u30e2\u30fc\u30c8\u306e\u66f4\u65b0\u3092\u53d7\u3051\u53d6\u308b\u3002\r\n\r\n# \u30d6\u30e9\u30f3\u30c1\u304c\u5b58\u5728\u3059\u308b\u304b\u78ba\u8a8d\r\n$ git branch -a &lt;\u691c\u7d22\u3057\u305f\u3044\u30d6\u30e9\u30f3\u30c1\u540d&gt;\r\n\r\n# \u30d6\u30e9\u30f3\u30c1\u306e\u4f5c\u6210\r\n$ git branch &lt;\u30d6\u30e9\u30f3\u30c1\u540d&gt;\r\n\r\n# \u30ed\u30fc\u30ab\u30eb\u30d6\u30e9\u30f3\u30c1\u306e\u5207\u308a\u66ff\u3048\u3068\u5909\u66f4\u306e\u53d6\u308a\u6d88\u3057\r\n$ git checkout &lt;\u30d6\u30e9\u30f3\u30c1\u540d&gt;\r\n# 2019\u5e74\u306eGit 2.23\u306e\u30ea\u30ea\u30fc\u30b9\u3067\u8ffd\u52a0\u3055\u308c\u305fswitch\u306e\u307b\u3046\u304c\u3044\u3044\u3089\u3057\u3044\r\n$ git switch &lt;\u30d6\u30e9\u30f3\u30c1\u540d&gt;\r\n\r\n# \u30d6\u30e9\u30f3\u30c1\u306e\u4f5c\u6210\u3068\u5207\u308a\u66ff\u3048\r\n$ git checkout &lt;\u30d6\u30e9\u30f3\u30c1\u540d&gt;\r\n# \u4ee5\u4e0b\u3068\u540c\u3058\r\ngit branch &lt;\u30d6\u30e9\u30f3\u30c1\u540d&gt;\r\ngit checkout &lt;\u30d6\u30e9\u30f3\u30c1\u540d&gt;\r\n# switch \u3067\u66f8\u304f\u306a\u3089\r\n$ git switch -c &lt;\u30d6\u30e9\u30f3\u30c1\u540d&gt;\r\n\r\n# \u30d6\u30e9\u30f3\u30c1\u306e\u524a\u9664\r\n$ git branch -d &lt;\u30d6\u30e9\u30f3\u30c1\u540d&gt;\r\n\r\n# \u30d6\u30e9\u30f3\u30c1\u540d\u5909\u66f4\r\n$ git branch -m &lt;\u5909\u3048\u305f\u3044\u30d6\u30e9\u30f3\u30c1\u540d&gt;  &lt;\u65b0\u3057\u3044\u30d6\u30e9\u30f3\u30c1\u540d&gt; \r\n\r\n# \u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u6700\u65b0\u306e\u5c65\u6b74\u306e\u53d6\u5f97\r\n$ git fetch origin &lt;\u30d6\u30e9\u30f3\u30c1\u540d&gt;\r\n$ git merge &lt;\u8ffd\u8de1\u30d6\u30e9\u30f3\u30c1\u540d\u3002\u4f8b\u3048\u3070origin\/develop&gt;\r\n\r\n# \u4e0a\u4e8c\u3064\u306e\u30b3\u30de\u30f3\u30c9\u306f\u4e00\u5ea6\u306b\u3067\u304d\u308b\u3002\u4ed6\u30e6\u30fc\u30b6\u304c\u30ea\u30e2\u30fc\u30c8\u306b\u4e0a\u3052\u305f\u5909\u66f4\u3092\u30ed\u30fc\u30ab\u30eb\u306b\u3082\u53cd\u6620\u3055\u305b\u308b\r\n$ git pull origin &lt;\u30d6\u30e9\u30f3\u30c1\u540d&gt;:\r\n\r\n# \u9001\u308b\u30d6\u30e9\u30f3\u30c1\u3092\u7a7a\u306b\u3059\u308b\u3001\u3064\u307e\u308a\u30ea\u30e2\u30fc\u30c8\u30d6\u30e9\u30f3\u30c1\u306e\u524a\u9664\u3002\r\n$ git push origin :&lt;\u30ea\u30e2\u30fc\u30c8\u30d6\u30e9\u30f3\u30c1\u540d&gt;\r\n\r\n# \u4eca\u3044\u308b\u30d6\u30e9\u30f3\u30c1\u306b\u6307\u5b9a\u3057\u305f\u30d6\u30e9\u30f3\u30c1\u3092\u53d6\u308a\u8fbc\u3080\r\n# git merge &lt;\u53d6\u308a\u8fbc\u3080\u30d6\u30e9\u30f3\u30c1\u540d&gt;\r\n\r\n# \u6839\u5143\u306e\u7570\u306a\u308b\u30d6\u30e9\u30f3\u30c1\u3092\u5f37\u5f15\u306b\u30de\u30fc\u30b8\r\n$ git merge --allow-unrelated-histories &lt;\u53d6\u308a\u8fbc\u3080\u30d6\u30e9\u30f3\u30c1\u540d&gt;\r\n\r\n# \u30ea\u30e2\u30fc\u30c8\u306e\u66f4\u65b0\u3092\u78ba\u8a8d\r\n$ git ls-remote\r\n<\/code><\/pre>\n<h1>\u7ed3\u675f<\/h1>\n<p>\u6211\u8981\u6210\u4e3aGit\u7684\u5927\u5e08\uff01\uff01<\/p>\n<h2>\u53c2\u8003\u5d07\u62dc\u7684\u795e\u5723\u7f51\u7ad9<\/h2>\n<p>\u300a\u30b5\u30eb\u5148\u751f\u7684Git\u5165\u95e8\u301c\u7cbe\u901a\u7248\u672c\u63a7\u5236\u301c\u3010\u9879\u76ee\u7ba1\u7406\u5de5\u5177Backlog\u3011\u300b<br \/>\nhttps:\/\/backlog.com\/ja\/git-tutorial\/<br \/>\n\u300aGit-flow \uff5e\u4e86\u89e3Git\u5206\u652f\u6a21\u578b\uff5e | \u7248\u672c\u63a7\u5236\u7cfb\u7edf\u5165\u95e8\uff08\u521d\u5b66\u8005\u5411\uff09\u300b<br \/>\nhttps:\/\/tracpath.com\/bootcamp\/learning_git_git_flow.html<br \/>\n\u300a\u901a\u8fc7GitHub\u8fdb\u884cssh\u8fde\u63a5\u7684\u6b65\u9aa4\u301c\u4ece\u751f\u6210\u516c\u94a5\u548c\u79c1\u94a5\u5f00\u59cb\u301c &#8211; Qiita\u300b<br \/>\nhttps:\/\/qiita.com\/shizuma\/items\/2b2f873a0034839e47ce<br \/>\n\u300aGit\u7684HEAD\u8eab\u4efd\u662f\u8c01 &#8211; Qiita\u300b<br \/>\nhttps:\/\/qiita.com\/ymzkjpx\/items\/00ff664da60c37458aaa<br \/>\n\u300a\u522b\u518d\u8bf4Git\u7684&#8221;tracking branch&#8221;\u4e86 &#8211; Qiita\u300b<br \/>\nhttps:\/\/qiita.com\/uasi\/items\/69368c17c79e99aaddbf<br \/>\n\u3010\u521d\u5b66\u8005\u5411\u3011\u5173\u4e8egit fetch\u3001git merge\u3001git pull\u7684\u533a\u522b &#8211; Qiita<br \/>\nhttps:\/\/qiita.com\/wann\/items\/688bc17460a457104d7d<\/p>\n<p>\u975e\u5e38\u611f\u8c22\u4f60\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148 \u53c2\u52a0\u4e86\u7b2c\u4e00\u6b21\u9ed1\u5ba2\u9a6c\u62c9\u677e\u65f6\uff0c\u89c9\u5f97\u4f7f\u7528\u8d77\u6765\u592a\u65b9\u4fbf\u4e86\uff0c\u6240\u4ee5\u4e3a\u4e86\u81ea\u5df1\u6574\u7406\u8d77\u6765\u3002 \u56e0\u4e3a\u5b8c\u5168\u4e0d\u719f\u7ec3\uff0c\u6240\u4ee5\u4f1a\u4e0d\u65ad\u8ffd\u52a0\u3002 [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-37385","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>Git\/Github\u7684\u5907\u5fd8\u5f55 - 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\/git-github\u7684\u5907\u5fd8\u5f55\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Git\/Github\u7684\u5907\u5fd8\u5f55\" \/>\n<meta property=\"og:description\" content=\"\u9996\u5148 \u53c2\u52a0\u4e86\u7b2c\u4e00\u6b21\u9ed1\u5ba2\u9a6c\u62c9\u677e\u65f6\uff0c\u89c9\u5f97\u4f7f\u7528\u8d77\u6765\u592a\u65b9\u4fbf\u4e86\uff0c\u6240\u4ee5\u4e3a\u4e86\u81ea\u5df1\u6574\u7406\u8d77\u6765\u3002 \u56e0\u4e3a\u5b8c\u5168\u4e0d\u719f\u7ec3\uff0c\u6240\u4ee5\u4f1a\u4e0d\u65ad\u8ffd\u52a0\u3002 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/git-github\u7684\u5907\u5fd8\u5f55\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-26T07:10:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-03T16:58:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2e6937434c4406c544ca\/40-0.png\" \/>\n<meta name=\"author\" content=\"\u6587, \u7fd4\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6587, \u7fd4\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 \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\/git-github%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/git-github%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95\/\",\"name\":\"Git\/Github\u7684\u5907\u5fd8\u5f55 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-07-26T07:10:57+00:00\",\"dateModified\":\"2024-05-03T16:58:38+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/64d5cc7727fffbff2f9a2a8da1de3e5c\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/git-github%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/git-github%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/git-github%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Git\/Github\u7684\u5907\u5fd8\u5f55\"}]},{\"@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\/64d5cc7727fffbff2f9a2a8da1de3e5c\",\"name\":\"\u6587, \u7fd4\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g\",\"caption\":\"\u6587, \u7fd4\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/wenxiang\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/git-github%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Git\/Github\u7684\u5907\u5fd8\u5f55 - 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\/git-github\u7684\u5907\u5fd8\u5f55\/","og_locale":"zh_CN","og_type":"article","og_title":"Git\/Github\u7684\u5907\u5fd8\u5f55","og_description":"\u9996\u5148 \u53c2\u52a0\u4e86\u7b2c\u4e00\u6b21\u9ed1\u5ba2\u9a6c\u62c9\u677e\u65f6\uff0c\u89c9\u5f97\u4f7f\u7528\u8d77\u6765\u592a\u65b9\u4fbf\u4e86\uff0c\u6240\u4ee5\u4e3a\u4e86\u81ea\u5df1\u6574\u7406\u8d77\u6765\u3002 \u56e0\u4e3a\u5b8c\u5168\u4e0d\u719f\u7ec3\uff0c\u6240\u4ee5\u4f1a\u4e0d\u65ad\u8ffd\u52a0\u3002 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/git-github\u7684\u5907\u5fd8\u5f55\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-07-26T07:10:57+00:00","article_modified_time":"2024-05-03T16:58:38+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2e6937434c4406c544ca\/40-0.png"}],"author":"\u6587, \u7fd4","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u6587, \u7fd4","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/git-github%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/git-github%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95\/","name":"Git\/Github\u7684\u5907\u5fd8\u5f55 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-07-26T07:10:57+00:00","dateModified":"2024-05-03T16:58:38+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/64d5cc7727fffbff2f9a2a8da1de3e5c"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/git-github%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/git-github%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/git-github%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"Git\/Github\u7684\u5907\u5fd8\u5f55"}]},{"@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\/64d5cc7727fffbff2f9a2a8da1de3e5c","name":"\u6587, \u7fd4","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/920c3d673e0bccacc98e5e6b7149bb3c22edd8d39cb753e5d7d7e471498118a1?s=96&d=mm&r=g","caption":"\u6587, \u7fd4"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/wenxiang\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/git-github%e7%9a%84%e5%a4%87%e5%bf%98%e5%bd%95\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/37385","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\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=37385"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/37385\/revisions"}],"predecessor-version":[{"id":95154,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/37385\/revisions\/95154"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=37385"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=37385"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=37385"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}