{"id":37629,"date":"2023-02-16T02:23:33","date_gmt":"2023-10-23T06:31:06","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/git%e7%ac%94%e8%ae%b0-18\/"},"modified":"2024-04-29T14:47:25","modified_gmt":"2024-04-29T06:47:25","slug":"git%e7%ac%94%e8%ae%b0-18","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/git%e7%ac%94%e8%ae%b0-18\/","title":{"rendered":"Git\u7b14\u8bb0"},"content":{"rendered":"<p>\u7531\u4e8e\u6211\u4e00\u76f4\u4ee5\u6765\u90fd\u6ca1\u6709\u597d\u597d\u5b66\u4e60\u8fc7git\u7684\u57fa\u7840\u77e5\u8bc6\uff0c\u611f\u5230\u975e\u5e38\u7f9e\u6127\uff0c\u6240\u4ee5\u6211\u51b3\u5b9a\u5229\u7528\u6691\u5047\u91cc\u7684\u4e00\u5929\u65f6\u95f4\u597d\u597d\u5b66\u4e60git\u3002\u514d\u8d23\u58f0\u660e\uff1a\u4e0b\u9762\u6211\u81ea\u5df1\u6309\u7167\u6211\u7406\u89e3\u7684\u5185\u5bb9\u8fdb\u884c\u4e86\u7b80\u8981\u603b\u7ed3\uff0c\u5982\u679c\u4f60\u60f3\u8981\u7cfb\u7edf\u5730\u5b66\u4e60\u7684\u8bdd\uff0c\u6211\u8ba4\u4e3a\u6700\u597d\u8fd8\u662f\u770b\u4e0b\u9762\u6211\u63d0\u4f9b\u7684\u53c2\u8003\u7f51\u7ad9\uff0c\u8fd9\u6837\u4f1a\u66f4\u5feb\u901f\u6709\u6548\u3002<\/p>\n<h1>Contents<\/h1>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Git\u3068\u306f<\/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\">\u3069\u3046\u3084\u3063\u3066<\/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\">\u57fa\u672c\u7684\u306a\u64cd\u4f5c\u4e00\u89a7<\/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\">\u7c21\u5358\u306a\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb<\/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\">\u3061\u3087\u3063\u3068\u3057\u305f\u5b9f\u8df5<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">Github\u3092\u4f7f\u3063\u3066\u307f\u308b<\/ul>\n<h1>Git\u662f\u4e00\u79cd\u7248\u672c\u63a7\u5236\u7cfb\u7edf\u3002<\/h1>\n<p>\u4e00\u4e2a\u7248\u672c\u63a7\u5236\u7cfb\u7edf\uff0c\u53ef\u4ee5\u6279\u91cf\u7ba1\u7406\u5171\u540c\u4fee\u6539\u6587\u4ef6\u65f6\u6240\u4fee\u6539\u7684\u5185\u5bb9\u3001\u5386\u53f2\u8bb0\u5f55\u7b49\uff0c\u4f9b\u4e0d\u7279\u5b9a\u591a\u6570\u7684\u4eba\u4f7f\u7528\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f9437434c4406c58945\/5-0.png\" alt=\"Scannable Document on Aug 5, 2016, 10_30_43 PM.png\" \/><\/div>\n<h1>\u4f60\u4f1a\u600e\u4e48\u505a<\/h1>\n<p>\u4e3a\u6bcf\u4e2a\u76ee\u5f55\u521b\u5efa\u4e00\u4e2a\u4ed3\u5e93\u6765\u4fdd\u5b58\u548c\u7ba1\u7406\u5185\u5bb9\u7684\u53d8\u66f4\u5386\u53f2\u3002<\/p>\n<h1>\u64cd\u4f5c\u57fa\u7840\u6e05\u5355<\/h1>\n<p>ls\u81ea\u5206\u304c\u4eca\u3044\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308b\u30d5\u30a1\u30a4\u30eb\u4e00\u89a7\u3092\u8868\u793a<br \/>\ncd [\uff08\u4e0b\u5c64\uff09\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u5148]<\/p>\n<p>cd ~\u30db\u30fc\u30e0\u753b\u9762\u3078\u623b\u308b<\/p>\n<p>pwd\u81ea\u5206\u304c\u4eca\u3044\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u304c\u308f\u304b\u3089\u306a\u3044\u6642\u306b<\/p>\n<p>cd ..\u81ea\u5206\u304c\u4eca\u3044\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u3072\u3068\u3064\u524d\uff08\u4e0a\u5c64\uff09\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3078<\/p>\n<p>ls -la\u6587\u5b57\u901a\u308a\u5168\u3066\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u8868\u793a\uff08\u30d5\u30a1\u30a4\u30eb\u8868\u793a\u3067\u3082\u898b\u308c\u306a\u3044\u3088\u3046\u306a\u30d5\u30a1\u30a4\u30eb\u3001\u305d\u3046\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u306f\u57fa\u672c\u3044\u3058\u3089\u306a\u3044\u307b\u3046\u304c\u3088\u3057\uff01\uff09<\/p>\n<h1>\u7b80\u5355\u7684\u6559\u7a0b de<\/h1>\n<h2>\u63d0\u4ea4\u65b0\u5efa\u7684\u6587\u4ef6\/\u6587\u4ef6\u4fee\u6539<\/h2>\n<p>\u5728\u547d\u4ee4\u884c\u4e2d\uff0c\u521b\u5efa\u4e00\u4e2a\u540d\u4e3aex\u7684\u6587\u4ef6\u5939\uff0c\u8fdb\u5165\u8be5\u6587\u4ef6\u5939\u5e76\u901a\u8fc7git init\u547d\u4ee4\u521d\u59cb\u5316git\u3002\u521b\u5efa\u4e00\u4e2a\u9002\u5f53\u7684\u6587\u672c\u6587\u4ef6\u5e76\u4fdd\u5b58\u3002\u7136\u540e\u4f7f\u7528git add .\u547d\u4ee4\u544a\u77e5git\u6709\u4fee\u6539\u3002<\/p>\n<p>\u4f7f\u7528git log &#8211;author=&#8221;username&#8221;\u547d\u4ee4\uff0c\u4ec5\u663e\u793a\u7279\u5b9a\u7528\u6237\u7684\u63d0\u4ea4\u8bb0\u5f55\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f9437434c4406c58945\/14-0.png\" alt=\"Screen Shot 2016-08-05 at 10.41.53 PM.png\" \/><\/div>\n<p>\u672a\u8ddf\u8e2a\u6587\u4ef6\u5373\u4e3a\u672a\u63d0\u4ea4\u7684\u6587\u4ef6\u3002\u6362\u53e5\u8bdd\u8bf4\uff0c\u56e0\u4e3a\u672a\u63d0\u4ea4\uff0c\u6240\u4ee5\u65e0\u6cd5\u8fdb\u884c\u53d8\u66f4\u5386\u53f2\u7684\u7ba1\u7406\u3002<\/p>\n<p>\u4e3a\u4e86\u63d0\u4ea4\u66f4\u6539\uff0c\u9700\u8981\u4f7f\u7528git add [file]\u5c06\u6587\u4ef6\u5148\u653e\u5165\u672c\u5730\u4ed3\u5e93\uff0c\u7136\u540e\u518d\u4f7f\u7528git commit\u6765\u6dfb\u52a0\u66f4\u6539\u3002<\/p>\n<p>\u5de5\u4f5c\u526f\u672c &gt; \u6682\u5b58\u533a &gt; \u4ed3\u5e93\u7684\u987a\u5e8f\u3002\u8be6\u7ec6\u4fe1\u606f\u8bf7\u53c2\u8003\u4e0a\u65b9\uff08\u62d9\u52a3\u7684\uff09\u56fe\u50cf\u3002\u3002\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f9437434c4406c58945\/18-0.png\" alt=\"Screen Shot 2016-08-05 at 10.46.13 PM.png\" \/><\/div>\n<p>git commit -m &#8220;[\u5728\u6b64\u586b\u5165\u8bc4\u8bba]&#8221;\u4ee5\u63d0\u4ea4\u66f4\u6539\u3002<br \/>\ngit commit -m &#8220;\u5c06\u6240\u6709\u6587\u4ef6\u6dfb\u52a0\u5230\u4ed3\u5e93\u4e2d&#8221;<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f9437434c4406c58945\/20-0.png\" alt=\"Screen Shot 2016-08-05 at 10.47.20 PM.png\" \/><\/div>\n<p>\u53ef\u4ee5\u5728git log\u4e2d\u786e\u8ba4\u3002<\/p>\n<h2>\u786e\u8ba4\u66f4\u6539\u540e\u7684\u6587\u4ef6\u7684\u5dee\u5f02<\/h2>\n<p>\u5f53\u4f60\u4fee\u6539\u6587\u4ef6\u65f6\uff0c\u5f53\u7136\u4f1a\u5728git status\u4e2d\u5f97\u5230\u4e00\u4e2a\u8b66\u544a\uff0c\u6307\u793a\u4f60\u7684\u5b58\u50a8\u5e93\u7684\u6587\u4ef6\u6709\u6240\u4e0d\u540c\uff01\u5982\u679c\u60f3\u8981\u4e00\u6b21\u6027\u786e\u8ba4\u5177\u4f53\u5dee\u5f02\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528git diff\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f9437434c4406c58945\/24-0.png\" alt=\"Screen Shot 2016-08-05 at 10.57.41 PM.png\" \/><\/div>\n<p>\u5728\u8fd9\u91cc\uff0c\u544a\u8bc9\u6211ex.py\u6587\u4ef6\u4e2d\u7684def bar(): return 2\u5df2\u7ecf\u4ecedef bar(): return 2\u66f4\u6539\u4e3adef bar(): return 345\u3002\u7ea2\u8272\u4ee3\u8868\u5f53\u524d\u5b58\u50a8\u5e93\u4e2d\u7684\u6570\u636e\uff0c\u7eff\u8272\u4ee3\u8868\u5de5\u4f5c\u76ee\u5f55\u4e2d\u7684\u6570\u636e\u5185\u5bb9\u3002git diff\u6bd4\u8f83\u7684\u662f\u5de5\u4f5c\u76ee\u5f55\u548c\u5b58\u50a8\u5e93\uff0c\u800c\u4e0d\u662f\u4f4d\u4e8e\u4e2d\u95f4\u7684\u6682\u5b58\u533a\u7684\u6587\u4ef6\uff0c\u8bf7\u6ce8\u610f\u3002\u6362\u53e5\u8bdd\u8bf4\uff0c\u4e00\u65e6\u8fd0\u884cgit add [file]\uff0c\u8be5\u6587\u4ef6\u5728git diff\u4e2d\u5c06\u4e0d\u518d\u663e\u793a\u3002\u5982\u679c\u60f3\u8981\u5c06\u5176\u4e0e\u6682\u5b58\u533a\u6bd4\u8f83\uff0c\u53ef\u4ee5\u4f7f\u7528git diff &#8211;staged\u8fdb\u884c\u786e\u8ba4\u3002<\/p>\n<h2>\u5220\u9664\u6587\u4ef6<\/h2>\n<p>\u4f7f\u7528 &#8220;git rm [\u6587\u4ef6\u540d]&#8221; \u547d\u4ee4\u53ef\u4ee5\u5c06\u6587\u4ef6\u4ece\u4ed3\u5e93\u548c\u5de5\u4f5c\u76ee\u5f55\u4e2d\u5220\u9664\u3002\u5220\u9664\u540e\u522b\u5fd8\u4e86\u63d0\u4ea4\u4fee\u6539\u7684\u5185\u5bb9\uff01<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f9437434c4406c58945\/28-0.png\" alt=\"Screen Shot 2016-08-05 at 11.13.09 PM.png\" \/><\/div>\n<h2>\u6587\u4ef6\u7684\u79fb\u52a8\/\u6539\u540d<\/h2>\n<p>\u53ef\u4ee5\u4f7f\u7528`git mv [\u6587\u4ef6\u540d] [\u65b0\u6587\u4ef6\u540d]`\u547d\u4ee4\u6765\u66f4\u6539\u6587\u4ef6\u540d\u79f0\u3002\u4f7f\u7528`git mv [\u6587\u4ef6\u540d] [\u76ee\u5f55\u540d]`\u547d\u4ee4\u53ef\u4ee5\u79fb\u52a8\u6587\u4ef6\u5230\u7279\u5b9a\u76ee\u5f55\u4e2d\u3002\u4f7f\u7528`git mv ex.py test\/ex.py`\u6216\u8005`git mv ex.py test\/ex2.py`\u53ef\u4ee5\u540c\u65f6\u8fdb\u884c\u6587\u4ef6\u91cd\u547d\u540d\u548c\u79fb\u52a8\u5230\u6307\u5b9a\u76ee\u5f55\u7684\u64cd\u4f5c\u3002<\/p>\n<h1>\u4e00\u4e9b\u5c0f\u5b9e\u8df5<\/h1>\n<p>\u6211\u5c06\u4f7f\u7528\u5728YouTube\u6559\u7a0b\u4e2d\u627e\u5230\u7684\u6587\u4ef6\u6765\u5b9e\u9645\u64cd\u4f5cGit\uff01\u4e0b\u8f7d\u94fe\u63a5\u5728\u8fd9\u91cc\uff08\u6240\u6709\u7684\u9e23\u8c22\u5f52Bucky\uff09\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f9437434c4406c58945\/33-0.png\" alt=\"Screen Shot 2016-08-05 at 11.36.11 PM.png\" \/><\/div>\n<p>\u8fd9\u6837\u611f\u89c9\uff0c\u50cf\u5495\u54c7\u54c7\u5730\u51fa\u6765\u5c31\u597d\u4e86\u3002<\/p>\n<h2>\u76f4\u63a5\u5c06\u6587\u4ef6\u63d0\u4ea4\u5230\u4ed3\u5e93\uff0c\u800c\u4e0d\u7ecf\u8fc7\u6682\u5b58\u533a\uff1agit commit -am<\/h2>\n<p>\u968f\u610f\u9009\u62e9\u4e00\u4e2a\u6587\u4ef6\uff08\u6211\u9009\u62e9index.html\uff09\uff0c\u53ef\u4ee5\u968f\u610f\u66f4\u6539\u6ce8\u91ca\u7684\u884c\u6570\u6216\u4efb\u4f55\u5176\u4ed6\u5185\u5bb9\u3002\u901a\u8fc7git status\u786e\u8ba4\u66f4\u6539\u540e\uff0c\u4f7f\u7528git commit -am &#8220;Cleaned up the HTML comments&#8221;\u53ef\u4ee5\u5c06\u66f4\u6539\u7684\u6587\u4ef6\u4e00\u6b21\u6027\u53d1\u9001\u5230\u5b58\u50a8\u5e93\u4e2d\uff0c\u800c\u65e0\u9700\u5c06\u6bcf\u4e2a\u6587\u4ef6\u90fd\u53d1\u9001\u5230\u6682\u5b58\u533a\u3002\u901a\u8fc7git status\u8fdb\u884c\u786e\u8ba4\u540e\uff0c\u53ef\u4ee5\u6e05\u6670\u5730\u770b\u5230\u66f4\u6539\u5df2\u7ecf\u6210\u529f\u5730\u53cd\u6620\u51fa\u6765\u4e86\u3002<\/p>\n<p>\u53ea\u9700\u8981\u4e00\u4e2a\u9009\u9879\u7684\u8bdd\uff0c\u53ef\u4ee5\u8fd9\u6837\u7ffb\u8bd1\uff1a<br \/>\n\u53ea\u9700\u8bb0\u4f4f\uff0c\u4f7f\u7528\u6b64\u547d\u4ee4\u4f1a\u5c06\u6240\u6709\u5de5\u4f5c\u6587\u4ef6\u53d1\u9001\u5230\u5b58\u50a8\u5e93\u4e2d\u3002\u9664\u975e\u5728\u7b80\u5355\u7f16\u8f91\u6587\u4ef6\u65f6\uff0c\u6700\u597d\u4e0d\u8981\u4f7f\u7528\u5b83\u3002<\/p>\n<h2>\u64a4\u9500\u53d8\u66f4<\/h2>\n<p>\u5728git\u72b6\u6001\u4e0b\uff0c\u786e\u8ba4\u66f4\u6539\u5e76\u6267\u884cgit checkout &#8212; [\u6587\u4ef6\u540d]\u3002<\/p>\n<h2>\u53d6\u6d88\u6682\u5b58\u6587\u4ef6<\/h2>\n<p>\u6539\u52a8\u4e86\u6587\u4ef6\u4e4b\u540e\uff0c\u4f7f\u7528 &#8220;git add [file]&#8221; \u5c06\u5176\u53d1\u9001\u5230\u6682\u5b58\u533a\u662f\u5f88\u597d\u7684\uff0c\u4f46\u4e8b\u5b9e\u4e0a\u6211\u5e76\u4e0d\u60f3\u8fdb\u884c\u63d0\u4ea4\u3002\u6211\u60f3\u8981\u64a4\u9500\uff01\u5f53\u9047\u5230\u8fd9\u79cd\u60c5\u51b5\u65f6\uff0c\u53ef\u4ee5\u4f7f\u7528 &#8220;git reset HEAD&#8221;\u5c06\u6700\u65b0\u7684\u6587\u4ef6\u4ece\u6682\u5b58\u533a\u64a4\u9500\uff0c\u5e76\u653e\u56de\u5de5\u4f5c\u76ee\u5f55\u3002<\/p>\n<h2>\u64a4\u9500\u63d0\u4ea4\u540e\u7684\u66f4\u6539\uff0c\u5e76\u5c06\u65e7\u6587\u4ef6\u5e26\u5165\u4ed3\u5e93\u3002<\/h2>\n<p>\u5728Git\u65e5\u5fd7\u4e2d\u67e5\u770b\u8981\u8fd4\u56de\u7684\u63d0\u4ea4\u3002<\/p>\n<pre class=\"post-pre\"><code>commit 739cc67b99beecfbae4271028065263db4251818\r\nAuthor: xxxxxxxxxxxxx\r\nDate:   Fri Aug 5 23:40:15 2016 -0700\r\n\r\n    cleaned up the HTML comments a bit\r\n\r\ncommit c71d29002ade2e0806f5aab96e7262d61bed2a5e\r\nAuthor: xxxxxxxxxxxxx\r\nDate:   Fri Aug 5 23:36:07 2016 -0700\r\n\r\n    our first commit\r\n\r\n<\/code><\/pre>\n<p>\u590d\u5236\u60a8\u60f3\u8981\u524d\u5f80\u7684\u63d0\u4ea4(commit)\u65c1\u8fb9\u7684ID\uff08\u6216\u8005\u8f93\u5165\u524d\u51e0\u4e2a\u5b57\u7b26\uff09\uff0c\u7136\u540e\u4f7f\u7528git checkout [id] &#8212; [\u6587\u4ef6\u540d]\u547d\u4ee4\u5c06\u6307\u5b9a\u6587\u4ef6\u5e26\u56de\u3002\u786e\u8ba4\u4f7f\u7528git status\u540e\u8fdb\u884c\u63d0\u4ea4(commit)\u3002<\/p>\n<h1>\u5c1d\u8bd5\u4f7f\u7528Github\u3002<\/h1>\n<p>\u53ef\u4ee5\u901a\u8fc7\u53c2\u8003\u94fe\u63a5\u6765\u4e86\u89e3github\u548cgit\u7684\u533a\u522b\uff0c\u7b80\u5355\u6765\u8bf4\uff0c\u53ef\u4ee5\u8ba4\u4e3agit\u53ef\u4ee5\u901a\u8fc7\u5728\u7ebf\u7f51\u7edc\u516c\u5f00\u5171\u4eab\uff0c\u8fd9\u6837\u5c31\u80fd\u597d\u597d\u7406\u89e3\u4e86\u3002<\/p>\n<p>\u70b9\u51fb GitHub \u53f3\u4e0a\u89d2\u7684\u4e0b\u62c9\u83dc\u5355\uff0c\u5e76\u9009\u62e9&#8221;\u521b\u5efa\u4e00\u4e2a\u65b0\u4ed3\u5e93&#8221;\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f9437434c4406c58945\/49-0.png\" alt=\"creen Shot 2016-08-06 at 12.16.32 AM.png\" \/><\/div>\n<p>\u521b\u5efa\u9002\u5f53\u7684\u5de5\u4f5c\u76ee\u5f55\uff0c\u6309\u7167\u60ef\u4f8b\u8fdb\u884cgit commit\u3002\u4ece\u8fd9\u91cc\u63a8\u9001\u5230Github\uff08\u5c06\u5176\u5e26\u5165\u5728\u7ebf\u4e0a\u88ab\u79f0\u4e3apush\uff0c\u800c\u4e0d\u662fpull\u7684\u66ff\u4ee3\uff09\u3002\u56de\u5230\u4e4b\u524d\u7684\u7f51\u9875\uff0c\u590d\u5236\u4f4d\u4e8e\u4e0a\u65b9\u7684\u94fe\u63a5\u3002\u4f7f\u7528git remote add [\u94fe\u63a5\u540d\u79f0\uff08\u4e3a\u4e86\u907f\u514d\u6bcf\u6b21\u90fd\u8981\u6253\u94fe\u63a5\u800c\u8bbe\u7f6e\u7684\uff09] [\u94fe\u63a5]\uff0c\u5177\u4f53\u4e3agit remote add github_test https:\/\/github.com\/xxxxxxxxxxxx\/test.git\u3002\u4f7f\u7528git push -u [\u5728\u7ebf\u4ed3\u5e93]\u5c06\u5176\u63a8\u9001\u5230\u5728\u7ebf\u4ed3\u5e93\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f9437434c4406c58945\/51-0.png\" alt=\"Screen Shot 2016-08-06 at 12.29.00 AM.png\" \/><\/div>\n<h1>\u53c2\u8003\u7684\u7f51\u7ad9<\/h1>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30b5\u30eb\u3067\u3082\u5206\u304b\u308bgit\u5165\u9580<\/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\">\u300c\u305d\u3082\u305d\u3082Git\u3063\u3066\u4f55\uff1f\u300d\u3001\u300cGit\u3068GitHub\u306f\u4f55\u304c\u9055\u3046\u306e\uff1f\u300d\u306b\u30b7\u30f3\u30d7\u30eb\u306b\u7b54\u3048\u308b\u3088<\/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\">Subversion\u304b\u3089\u306eGit\u5165\u9580(Git\u306e\u30e1\u30ea\u30c3\u30c8\u3001Subversion\u3068\u306e\u9055\u3044)<\/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\">\u30a4\u30e9\u30b9\u30c8\u3067\u308f\u304b\u308b\uff01git\u5165\u9580\u306e\u5165\u9580<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">Git Tutorials Playlist<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u7531\u4e8e\u6211\u4e00\u76f4\u4ee5\u6765\u90fd\u6ca1\u6709\u597d\u597d\u5b66\u4e60\u8fc7git\u7684\u57fa\u7840\u77e5\u8bc6\uff0c\u611f\u5230\u975e\u5e38\u7f9e\u6127\uff0c\u6240\u4ee5\u6211\u51b3\u5b9a\u5229\u7528\u6691\u5047\u91cc\u7684\u4e00\u5929\u65f6\u95f4\u597d\u597d\u5b66\u4e60git\u3002\u514d [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-37629","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\u7b14\u8bb0 - 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\u7b14\u8bb0-18\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Git\u7b14\u8bb0\" \/>\n<meta property=\"og:description\" content=\"\u7531\u4e8e\u6211\u4e00\u76f4\u4ee5\u6765\u90fd\u6ca1\u6709\u597d\u597d\u5b66\u4e60\u8fc7git\u7684\u57fa\u7840\u77e5\u8bc6\uff0c\u611f\u5230\u975e\u5e38\u7f9e\u6127\uff0c\u6240\u4ee5\u6211\u51b3\u5b9a\u5229\u7528\u6691\u5047\u91cc\u7684\u4e00\u5929\u65f6\u95f4\u597d\u597d\u5b66\u4e60git\u3002\u514d [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/git\u7b14\u8bb0-18\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-23T06:31:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-29T06:47:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f9437434c4406c58945\/5-0.png\" \/>\n<meta name=\"author\" content=\"\u6e05, \u626c\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u6e05, \u626c\" \/>\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\/git%e7%ac%94%e8%ae%b0-18\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/git%e7%ac%94%e8%ae%b0-18\/\",\"name\":\"Git\u7b14\u8bb0 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-10-23T06:31:06+00:00\",\"dateModified\":\"2024-04-29T06:47:25+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/git%e7%ac%94%e8%ae%b0-18\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/git%e7%ac%94%e8%ae%b0-18\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/git%e7%ac%94%e8%ae%b0-18\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Git\u7b14\u8bb0\"}]},{\"@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\/cb5556d2501da73d864cac945e8d9461\",\"name\":\"\u6e05, \u626c\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g\",\"caption\":\"\u6e05, \u626c\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyang\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/git%e7%ac%94%e8%ae%b0-18\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Git\u7b14\u8bb0 - 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\u7b14\u8bb0-18\/","og_locale":"zh_CN","og_type":"article","og_title":"Git\u7b14\u8bb0","og_description":"\u7531\u4e8e\u6211\u4e00\u76f4\u4ee5\u6765\u90fd\u6ca1\u6709\u597d\u597d\u5b66\u4e60\u8fc7git\u7684\u57fa\u7840\u77e5\u8bc6\uff0c\u611f\u5230\u975e\u5e38\u7f9e\u6127\uff0c\u6240\u4ee5\u6211\u51b3\u5b9a\u5229\u7528\u6691\u5047\u91cc\u7684\u4e00\u5929\u65f6\u95f4\u597d\u597d\u5b66\u4e60git\u3002\u514d [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/git\u7b14\u8bb0-18\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-10-23T06:31:06+00:00","article_modified_time":"2024-04-29T06:47:25+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f9437434c4406c58945\/5-0.png"}],"author":"\u6e05, \u626c","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u6e05, \u626c","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/git%e7%ac%94%e8%ae%b0-18\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/git%e7%ac%94%e8%ae%b0-18\/","name":"Git\u7b14\u8bb0 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-10-23T06:31:06+00:00","dateModified":"2024-04-29T06:47:25+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/cb5556d2501da73d864cac945e8d9461"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/git%e7%ac%94%e8%ae%b0-18\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/git%e7%ac%94%e8%ae%b0-18\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/git%e7%ac%94%e8%ae%b0-18\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"Git\u7b14\u8bb0"}]},{"@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\/cb5556d2501da73d864cac945e8d9461","name":"\u6e05, \u626c","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/32a4239de8ff29adace466261d309424a1e5fe9f7e3036bf89fe03f2e3dbe717?s=96&d=mm&r=g","caption":"\u6e05, \u626c"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/qingyang\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/git%e7%ac%94%e8%ae%b0-18\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/37629","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\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=37629"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/37629\/revisions"}],"predecessor-version":[{"id":85910,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/37629\/revisions\/85910"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=37629"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=37629"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=37629"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}