{"id":37609,"date":"2022-11-17T14:57:21","date_gmt":"2023-08-01T10:29:35","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%bc%80%e5%a7%8b%e4%bd%bf%e7%94%a8git%e4%ba%86%ef%bc%81\/"},"modified":"2024-04-29T01:10:01","modified_gmt":"2024-04-28T17:10:01","slug":"%e6%88%91%e5%bc%80%e5%a7%8b%e4%bd%bf%e7%94%a8git%e4%ba%86%ef%bc%81","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%bc%80%e5%a7%8b%e4%bd%bf%e7%94%a8git%e4%ba%86%ef%bc%81\/","title":{"rendered":"\u6211\u5f00\u59cb\u4f7f\u7528Git\u4e86\uff01"},"content":{"rendered":"<h1>\u9996\u5148<\/h1>\n<p>\u4ee5\u524d\u5728\u5de5\u4f5c\u4e2d\u4e00\u76f4\u4f7f\u7528Subversion\uff0c\u4f46\u662f\u672a\u6765\u53ef\u80fd\u4f1a\u5f00\u59cb\u4f7f\u7528Git\uff0c\u6240\u4ee5\u6211\u6253\u7b97\u5148\u5f00\u59cb\u5b66\u4e60\u3002<\/p>\n<p>\u5728\u516c\u53f8\u7684\u9879\u76ee\u4e2d\uff0c\u6211\u4eec\u4ecd\u7136\u5728\u4f7f\u7528SVN\u3002<br \/>\n\u516c\u53f8\u5185\u90e8\u7684\u4e00\u90e8\u5206\u5e93\u5df2\u7ecf\u8fc1\u79fb\u5230\u4e86Git\uff0c\u4f46\u662f\u56e0\u4e3a\u63a5\u89e6\u8f83\u5c11\uff0c\u5bf9\u4e8eGit\u6ca1\u6709\u7ecf\u9a8c\u3002<br \/>\n\u5728\u516c\u53f8\u5185\uff0c\u6211\u611f\u89c9SVN\u7684\u9650\u5236\u5373\u5c06\u5230\u6765\uff0c\u53ef\u80fd\u662f\u56e0\u4e3a\u9879\u76ee\u89c4\u6a21\u7684\u6269\u5927\uff08\u4eba\u6570\u548c\u6570\u636e\u5927\u5c0f\u589e\u52a0\uff0c\u5305\u62ec\u5927\u91cf\u7684\u4e8c\u8fdb\u5236\u6570\u636e\uff09\u4ee5\u53ca\u57fa\u7840\u8bbe\u65bd\u7684\u5f71\u54cd\uff08\u670d\u52a1\u5668\u6027\u80fd\u4e0d\u8db3\uff09\u3002<br \/>\n\u5173\u4e8eGit\uff0c\u542c\u8bf4\u5b83\u7684\u5206\u652f\u548c\u5408\u5e76\u529f\u80fd\u5f88\u5f3a\u5927\uff0c\u4f46\u5bf9\u4e8e\u7ba1\u7406\u4e8c\u8fdb\u5236\u6570\u636e\u53ef\u80fd\u4e0d\u9002\u7528\uff1f\u603b\u7684\u6765\u8bf4\uff0c\u53ef\u80fd\u662f\u56e0\u4e3a\u4e0d\u540c\u60c5\u51b5\u800c\u4e0d\u540c\u9009\u62e9\u3002<br \/>\n\u81f3\u4e8e\u7248\u672c\u7ba1\u7406\u7684\u6bd4\u8f83\u548c\u9009\u62e9\uff0c\u6211\u4eec\u5c06\u5728\u53e6\u4e00\u4e2a\u673a\u4f1a\u518d\u8ba8\u8bba\uff0c\u603b\u4e4b\u5148\u5f00\u59cb\u5c1d\u8bd5Git\u5427\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u3068\u306b\u304b\u304fGit\u3092\u89e6\u3063\u3066\u307f\u308b<\/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\">GUI\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u306eTortoiseGit\u3092\u89e6\u3063\u3066\u307f\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">GitHub\u3092\u89e6\u3063\u3066\u307f\u308b<\/ul>\n<p>\u6211\u4eec\u5c06\u4ee5&#8230;\u4e3a\u76ee\u6807\u7ee7\u7eed\u524d\u8fdb\u3002<\/p>\n<p>\u867d\u7136\u8fd8\u5728\u5199\u4f5c\u8fc7\u7a0b\u4e2d\uff0c\u4f46\u6211\u5e0c\u671b\u80fd\u5e2e\u52a9\u5f00\u59cb\u4f7f\u7528Git\u7684\u4eba\u3002<\/p>\n<p>\u7531\u4e8e\u4ee5\u4e0b\u5185\u5bb9\u53ea\u4f5c\u4e3a\u4e2a\u4eba\u5907\u5fd8\u5f55\u5199\u4e0b\uff0c\u6240\u4ee5\u8bf7\u539f\u8c05\u6211\u7684\u4e71\u6d82\u4e71\u5199\u3002<br \/>\n\u53e6\u5916\uff0c\u5982\u679c\u6709\u4efb\u4f55\u4e0d\u8db3\u6216\u60a8\u7684\u6307\u6b63\u610f\u89c1\uff0c\u8bf7\u591a\u591a\u6307\u6559\u3002<\/p>\n<h1>Git&#8211;&gt; Git\uff08\u4e00\u79cd\u7248\u672c\u63a7\u5236\u7cfb\u7edf\uff09<\/h1>\n<p>\u6240\u4ee5\uff0cGit\u3002<\/p>\n<p>\u5bf9\u4e8e\u201c\u5206\u6563\u7248\u672c\u63a7\u5236\u201d\u8fd9\u4e2a\u6982\u5ff5\uff0c\u6211\u4e0d\u662f\u5f88\u4e86\u89e3\uff0c\u8ddfSVN\u6709\u5f88\u5927\u7684\u4e0d\u540c\u5417\uff1f<br \/>\n\u6211\u89c9\u5f97\u53ef\u80fd\u662f\u8fd9\u6837\u7684\u3002<\/p>\n<p>SVN\u53ea\u80fd\u5411\u670d\u52a1\u5668\u7684\u5b58\u50a8\u5e93\u63d0\u4ea4\u3002<br \/>\n\u4e5f\u5c31\u662f\u8bf4\u5047\u8bbe\u5927\u5bb6\u5171\u540c\u64cd\u4f5c\u670d\u52a1\u5668\u7684\u5b58\u50a8\u5e93\u3002\uff08\u203b\u8fd9\u88ab\u79f0\u4e3a\u201c\u96c6\u4e2d\u5f0f\u7248\u672c\u63a7\u5236\u201d\uff09<br \/>\nGit\u91c7\u7528\u5171\u4eab\u5b58\u50a8\u5e93\u7684\u6982\u5ff5\uff0c\u670d\u52a1\u5668\u4f5c\u4e3a\u5171\u4eab\u5b58\u50a8\u5e93\uff0c\u672c\u5730\u4f5c\u4e3a\u5de5\u4f5c\u5b58\u50a8\u5e93\uff0c\u53ef\u4ee5\u5728\u672c\u5730\u521b\u5efa\u514b\u9686\u5e76\u5728\u514b\u9686\u4e2d\u81ea\u7531\u5730\u8fdb\u884c\u63d0\u4ea4\u3001\u5206\u652f\u7b49\u64cd\u4f5c\uff0c\u6700\u7ec8\u5c06\u63d0\u4ea4\u5185\u5bb9\u63a8\u9001\u5230\u5171\u4eab\u5b58\u50a8\u5e93\u4e2d\u3002\uff08\u203b\u8fd9\u88ab\u79f0\u4e3a\u201c\u5206\u5e03\u5f0f\u7248\u672c\u63a7\u5236\u201d\uff09<\/p>\n<p>\u90a3\u662f\u6307\u201c\u5206\u6563\u7248\u672c\u7ba1\u7406\u201d\u7684\u610f\u601d\u5417\uff01\uff1f<br \/>\n\u5982\u679c\u7528Git\u7684\u672f\u8bed\u6765\u5f52\u7eb3\u7684\u8bdd&#8230;<\/p>\n<p>\u5171\u6709\u5b58\u50a8\u5e93\uff1a\u5b58\u653e\u5728\u6587\u4ef6\u670d\u52a1\u5668\u7b49\u4e0a\u4f9b\u5927\u5bb6\u53c2\u8003\u7684\u5b58\u50a8\u5e93\u3002<br \/>\n\u5de5\u4f5c\u76ee\u5f55\uff1a\u7528\u4e8e\u672c\u5730\u5de5\u4f5c\u7684\u5b58\u50a8\u5e93\u3002<br \/>\n\u63d0\u4ea4\uff1a\u5411\u5de5\u4f5c\u76ee\u5f55\u63d0\u4ea4\u66f4\u6539\u3002<br \/>\n\u514b\u9686\uff1a\u5728\u672c\u5730\u521b\u5efa\u4e00\u4e2a\u5de5\u4f5c\u76ee\u5f55\u3002<br \/>\n\u63a8\u9001\uff1a\u5c06\u5de5\u4f5c\u76ee\u5f55\u7684\u66f4\u6539\u5185\u5bb9\u66f4\u65b0\u5230\u5171\u4eab\u5b58\u50a8\u5e93\u3002<br \/>\n\u62c9\u53d6\uff1a\u4ece\u5171\u4eab\u5b58\u50a8\u5e93\u83b7\u53d6\u6700\u65b0\u7248\u672c\u3002<br \/>\n\u53d8\u57fa\uff1a\u4e0d\u7406\u89e3\u548c\u4f7f\u7528\u53ef\u80fd\u4f1a\u5bfc\u81f4\u4e25\u91cd\u95ee\u9898\uff01\uff1f\u203b\u9700\u8981\u6ce8\u610f\uff01<\/p>\n<p>\u4ed3\u5e93\u79cd\u7c7b<br \/>\n\u4ed3\u5e93\u6709\u4e24\u79cd\u7c7b\u578b\u3002<br \/>\n\u7a7a\u4ed3\u5e93\uff1a\u6ca1\u6709\u5de5\u4f5c\u76ee\u5f55\uff0c\u53ea\u4fdd\u5b58\u66f4\u65b0\u4fe1\u606f\u3002<br \/>\n\u975e\u7a7a\u4ed3\u5e93\uff1a\u6709\u5de5\u4f5c\u76ee\u5f55\u3002<\/p>\n<p>\u5982\u679c\u7528SVN\uff0c\u5728\u8fdb\u884c\u4e2d\u7684\u5de5\u4f5c\u72b6\u6001\u6216\u8005\u4e00\u4e9b\u5c0f\u7684\u53d8\u52a8\u4e0a\u5f88\u96be\u63d0\u4ea4\uff0c\u4f46\u662f\u5982\u679c\u4f7f\u7528Git\uff0c\u53ef\u4ee5\u5728\u5de5\u4f5c\u76ee\u5f55\u4e2d\u9891\u7e41\u5730\u63d0\u4ea4\u53d8\u52a8\uff0c\u5e76\u53ea\u9700\u5c06\u6700\u7ec8\u7684\u5185\u5bb9\u63a8\u9001\u5230\u5171\u4eab\u4ed3\u5e93\u4e2d\u3002\u8fd9\u6837\uff0c\u5de5\u4f5c\u76ee\u5f55\u7684\u5386\u53f2\u8bb0\u5f55\u4e5f\u4f1a\u88ab\u53cd\u6620\u51fa\u6765\u5417\uff1f\u53ef\u4ee5\u77e5\u9053\u54ea\u4e9b\u5185\u5bb9\u8fd8\u6ca1\u88ab\u63a8\u9001\u5230\u5de5\u4f5c\u76ee\u5f55\u5417\uff1f<\/p>\n<h3>\u521b\u5efa\u5b58\u50a8\u5e93<\/h3>\n<pre class=\"post-pre\"><code>git init\r\n\r\nor\r\n\r\ngit init --bare --shared\r\n<\/code><\/pre>\n<h3>\u521b\u5efa\u5de5\u4f5c\u76ee\u5f55<\/h3>\n<p>\u521b\u5efa\u672c\u5730\u5de5\u4f5c\u4ed3\u5e93\u3002<\/p>\n<pre class=\"post-pre\"><code>git clone https:\/\/username@????\/????\/repository\r\n<\/code><\/pre>\n<h3>\u63d0\u4ea4<\/h3>\n<p>\u53ef\u4ee5\u5728\u5de5\u4f5c\u76ee\u5f55\u4e2d\u63d0\u4ea4\u6dfb\u52a0\u548c\u4fee\u6539\u3002<br \/>\n\u8fd9\u4e2a\u9636\u6bb5\u4e0d\u4f1a\u53cd\u6620\u5728\u5171\u4eab\u4ed3\u5e93\u4e2d\u3002<br \/>\n\u5bf9\u5171\u4eab\u4ed3\u5e93\u6ca1\u6709\u5f71\u54cd\uff0c\u53ef\u4ee5\u6beb\u4e0d\u72b9\u8c6b\u5730\u8fdb\u884c\u64cd\u4f5c\u3002<\/p>\n<pre class=\"post-pre\"><code>\/\/ \u30b3\u30df\u30c3\u30c8\u6e96\u5099\r\n\/\/ \u30a4\u30f3\u30c7\u30c3\u30af\u30b9\u3078\u306e\u53cd\u6620\r\ngit add &lt;filename&gt;\r\n  or\r\ngit add *\r\n\r\n\/\/ \u5b9f\u969b\u306b\u30b3\u30df\u30c3\u30c8\r\n\/\/ \u4f5c\u696d\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u307f\u306b\u53cd\u6620\r\ngit commit -m \r\n<\/code><\/pre>\n<h3>\u6309\u4e0b<\/h3>\n<p>\u5c06\u66f4\u65b0\u540e\u7684\u5de5\u4f5c\u76ee\u5f55\u5185\u5bb9\u540c\u6b65\u5230\u5171\u4eab\u7684\u4ee3\u7801\u4ed3\u5e93\u4e2d\u3002<\/p>\n<pre class=\"post-pre\"><code>\/\/ \u5171\u6709\u30ea\u30dd\u30b8\u30c8\u30ea\u306b\u53cd\u6620\r\ngit push origin master\r\n<\/code><\/pre>\n<h3>\u62d4\u5f97\u51fa\u6765<\/h3>\n<p>\u4ece\u5171\u4eab\u4ed3\u5e93\u83b7\u53d6\u6700\u65b0\u7248\u672c\u3002<\/p>\n<pre class=\"post-pre\"><code>git pull\r\n<\/code><\/pre>\n<h3>\u5206\u652f<\/h3>\n<h3>\u5408\u5e76<\/h3>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">FastForword<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">Non-FastForword<\/ul>\n<h3>\u91cd\u65b0\u57fa\u5e95 (rebase)<\/h3>\n<p>\u8bf7\u5c06\u5176\u4f5c\u4e3a\u4e00\u4e2a\u5355\u72ec\u7684\u9879\u76ee\u8bb0\u4e0b\u6765\uff0c\u56e0\u4e3a\u5c06\u5176\u89c6\u4e3a\u5408\u5e76\u7684\u4e00\u79cd\u53ef\u80fd\u4f1a\u6709\u6240\u56f0\u6270\u3002<\/p>\n<h1>\u6211\u7b2c\u4e00\u6b21\u5c1d\u8bd5\u4f7f\u7528Git\u3002<\/h1>\n<p>\u4e0d\u7ba1\u600e\u6837\uff0c\u8bd5\u7740\u6478\u4e00\u4e0b\u3002<\/p>\n<p>\u4e3a\u4e86\u719f\u6089\u8d77\u89c1\uff0c\u6211\u9996\u5148\u5c1d\u8bd5\u4ece\u547d\u4ee4\u884c\u5f00\u59cb\u3002<br \/>\n\u7136\u540e\u518d\u6765\u4f7f\u7528TortoiseGit\u3002<br \/>\nTortoiseGit\u7684\u5b89\u88c5\u9875\u9762\u4e0a\u5199\u7740\u8981\u5b89\u88c5msysGit\uff0c\u8fd9\u662f\u53e6\u5916\u4e00\u79cd\u4e1c\u897f\u5417\uff1f<br \/>\n\u2192\u5b9e\u9645\u4e0a\u5b83\u4eec\u662f\u4e00\u6837\u7684\uff0cmsysGit\u662f\u65e7\u7684\u540d\u79f0\uff0c\u73b0\u5728\u88ab\u79f0\u4e3aGit for windows\uff0c\u6240\u4ee5\u53ea\u9700\u5b89\u88c5Git for windows\u5373\u53ef\u3002<\/p>\n<h2>\u5b89\u88c5<\/h2>\n<p>\u6211\u4f1a\u53c2\u8003\u4e0b\u9762\u7684\u94fe\u63a5\u8fdb\u884c\u5b89\u88c5\u5c1d\u8bd5\u3002<br \/>\n\u7531\u4e8e\u6bcf\u4e2a\u9875\u9762\u53ef\u80fd\u4f1a\u6709\u4e9b\u8bb8\u5dee\u5f02\uff0c\u4f46\u8bf7\u9605\u8bfb\u5b83\u975e\u5e38\u6709\u5e2e\u52a9\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u79c1\u5bb6\u7248 Git For Windows\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u624b\u9806<\/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\">[Sy] \u300cGit for Windows\u300d\u3067Windows\u306bGit\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u624b\u9806<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">Windows\u306bGit\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b<\/ul>\n<h3>1. \u4e0b\u8f7d\u6765<\/h3>\n<p>Windows \u5e73\u53f0\u4e0a\u7684 Git<\/p>\n<p>\u6700\u65b0\u7248\u672c\u7684\u73b0\u72b6\u662f2.12.0 (2017\/3\/17)\u3002<br \/>\n\u8bf7\u4e0b\u8f7dGit-2.12.0-64-bit.exe\u3002<\/p>\n<h3>\u542f\u52a8\u5b89\u88c5\u7a0b\u5e8f<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/43-0.png\" alt=\"git_000.png\" \/><\/div>\n<h3>\u9009\u62e9\u5b89\u88c5\u76ee\u5f55\u6587\u4ef6\u5939\u3002<\/h3>\n<p>\u5982\u679c\u6ca1\u6709\u7279\u522b\u7684\u53d8\u5316\uff0c\u6211\u4eec\u5c06\u6309\u539f\u8ba1\u5212\u8fdb\u884c\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/46-0.png\" alt=\"git_001.png\" \/><\/div>\n<h3>\u9009\u62e9\u8981\u5b89\u88c5\u7684\u7ec4\u4ef6\u3002<\/h3>\n<p>\u6682\u65f6\u4e0d\u9700\u8981\u5728\u8fd9\u4e2a\u5730\u65b9\u8fdb\u884c\u4efb\u4f55\u66f4\u6539\uff0c\u6211\u4eec\u53ef\u4ee5\u7ee7\u7eed\u8fdb\u884c\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/49-0.png\" alt=\"git_002.png\" \/><\/div>\n<h3>\u9009\u62e9\u662f\u5426\u5c06\u5176\u6dfb\u52a0\u81f3\u5f00\u59cb\u83dc\u5355\u3002<\/h3>\n<p>\u5982\u679c\u60a8\u4e0d\u60f3\u5c06\u5176\u6dfb\u52a0\u5230\u5f00\u59cb\u83dc\u5355\u4e2d\uff0c\u8bf7\u52fe\u9009\u4e0b\u9762\u7684&#8221;\u4e0d\u521b\u5efa\u5f00\u59cb\u83dc\u5355\u6587\u4ef6\u5939&#8221;\u9009\u9879\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/52-0.png\" alt=\"git_003.png\" \/><\/div>\n<h3>\u9009\u62e9\u662f\u5426\u4f7f\u7528\u547d\u4ee4\u63d0\u793a\u7b26\u6765\u4f7f\u7528Git\u3002<\/h3>\n<p>\u6211\u9009\u62e9\u4e86\u4e0a\u9762\u7684 Git Bash only\u3002<br \/>\n\u5982\u679c\u9700\u8981\u8003\u8651\u4f7f\u7528TortoiseGit\u7684\u60c5\u51b5\uff0c\u6211\u4f1a\u518d\u6b21\u8fdb\u884c\u8bc4\u4f30\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/55-0.png\" alt=\"git_004.png\" \/><\/div>\n<h3>\u9009\u62e9\u5982\u4f55\u5904\u7406\u6539\u884c\u3002<\/h3>\n<p>\u5173\u4e8e\u8fd9\u4e2a\u95ee\u9898\uff0c\u53c2\u8003\u9875\u9762\u4e0a\u7684\u610f\u89c1\u4e5f\u5b58\u5728\u5206\u6b67\u3002\u8fd9\u6b21\u6211\u4eec\u9009\u62e9\u6700\u5e95\u4e0b\u7684\u201c\u6309\u539f\u6837\u7ed3\u8d26\u201d\u3001\u201c\u6309\u539f\u6837\u63d0\u4ea4\u201d\u9009\u9879\u7ee7\u7eed\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/58-0.png\" alt=\"git_005.png\" \/><\/div>\n<p>\u8fd9\u5c06\u6839\u636e\u5f00\u53d1\u73af\u5883\u548c\u9879\u76ee\u800c\u5b9a\uff0c\u9700\u8981\u9010\u4e2a\u8003\u8651\u3002<br \/>\n\u5b89\u88c5\u540e\u662f\u5426\u53ef\u4ee5\u8fdb\u884c\u66f4\u6539\uff1f<br \/>\n\u5982\u679c\u9879\u76ee\u7684\u7b56\u7565\u6709\u6240\u4e0d\u540c\uff0c\u6211\u4eec\u5c06\u5982\u4f55\u8fdb\u884c\u8fd0\u8425\uff1f<\/p>\n<h3>\u5728\u7ec8\u7aef\u4e0a\u9009\u62e9\u4f7f\u7528\u4ec0\u4e48<\/h3>\n<p>\u6211\u5011\u53ef\u4ee5\u7e7c\u7e8c\u4e0b\u53bb\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/62-0.png\" alt=\"git_006.png\" \/><\/div>\n<h3>\u9009\u62e9\u542f\u7528\/\u7981\u7528\u7f13\u5b58\u548c\u53cc\u91cd\u8ba4\u8bc1\u7684\u8bbe\u5b9a\u3002<\/h3>\n<p>\u6211\u5c06\u7ee7\u7eed\u5411\u524d\u8fdb\u884c\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/65-0.png\" alt=\"git_007.png\" \/><\/div>\n<h3>10.\u6b63\u5728\u5b89\u88c5\u4e2d&#8230;<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/67-0.png\" alt=\"git_008.png\" \/><\/div>\n<h3>11.\u5b89\u88c5\u5df2\u5b8c\u6210<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/69-0.png\" alt=\"git_009.png\" \/><\/div>\n<h3>12. \u542f\u52a8Git Bash<\/h3>\n<p>\u8bf7\u4ece\u5f00\u59cb\u83dc\u5355\u4e2d\u6267\u884cGitBash\uff0c\u5e76\u786e\u8ba4\u542f\u52a8\u3002<\/p>\n<h2>\u53ea\u5728\u672c\u5730\u7535\u8111\u4e0a\u5c1d\u8bd5\u4e00\u4e0b\u3002<\/h2>\n<p>\u53ea\u8981\u4e0d\u5728C:\\\u7684\u6839\u76ee\u5f55\u4f7f\u7528\u7c7b\u4f3crm -rf *\u8fd9\u6837\u7684bash\u547d\u4ee4\uff0c\u4f30\u8ba1\u7535\u8111\u4e0d\u4f1a\u88ab\u7834\u574f\uff0c\u6240\u4ee5\u6211\u60f3\u653e\u5fc3\u5730\u73a9\u4e00\u4e0b\u3002<\/p>\n<h3>1. \u5c1d\u8bd5\u521b\u5efa\u4ed3\u5e93<\/h3>\n<pre class=\"post-pre\"><code>$ git init\r\n<\/code><\/pre>\n<p>\u5df2\u7ecf\u521b\u5efa\u4e86 .git \u6587\u4ef6\u3002<\/p>\n<h3>\u5c1d\u8bd5\u6dfb\u52a0<\/h3>\n<pre class=\"post-pre\"><code>TEST!!\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>$ git add test.txt\r\n<\/code><\/pre>\n<p>\u8fd9\u53ea\u662f\u4e00\u4e2a\u7d22\u5f15\u6ce8\u518c\u7684\u72b6\u6001\uff0c\u5b9e\u9645\u4e0a\u8fd8\u6ca1\u6709\u63d0\u4ea4\u3002<\/p>\n<h3>\u786e\u8ba4\u4e00\u4e0b\u63d0\u4ea4\u524d\u7684\u72b6\u6001<\/h3>\n<pre class=\"post-pre\"><code>$ git status\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>On branch master\r\n\r\nInitial commit\r\n\r\nChanges to be committed:\r\n  (use \"git rm --cached &lt;file&gt;...\" to unstage)\r\n\r\n        new file:   test.txt\r\n<\/code><\/pre>\n<h3>\u5c1d\u8bd5\u53d6\u6d88\u6dfb\u52a0\u3002<\/h3>\n<pre class=\"post-pre\"><code>$ git rm --cached test.txt\r\nOn branch master\r\n\r\nInitial commit\r\n\r\nUntracked files:\r\n  (use \"git add &lt;file&gt;...\" to include in what will be committed)\r\n\r\n        test.txt\r\n\r\nnothing added to commit but untracked files present (use \"git add\" to track)\r\n<\/code><\/pre>\n<p>\u521a\u624d\u7684\u7d22\u5f15\u767b\u8bb0\u5df2\u7ecf\u53d6\u6d88\u4e86\u3002<\/p>\n<h3>5. \u5c1d\u8bd5\u63d0\u4ea4<\/h3>\n<p>\u5b8c\u6210\u4e0a\u8ff0\u7684\u6dfb\u52a0\u64cd\u4f5c\u540e\uff0c\u518d\u6267\u884c\u63d0\u4ea4\u64cd\u4f5c\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git commit -m '\u30b3\u30df\u30c3\u30c8\u306e\u30c6\u30b9\u30c8 \u30d5\u30a1\u30a4\u30eb\u306e\u8ffd\u52a0'\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>[master (root-commit) bba183d] \u30b3\u30df\u30c3\u30c8\u30c6\u30b9\u30c8 \u30d5\u30a1\u30a4\u30eb\u306e\u8ffd\u52a0\r\n Committer: xxx xxx &lt;xxx@xxx.co.jp&gt;\r\nYour name and email address were configured automatically based\r\non your username and hostname. Please check that they are accurate.\r\nYou can suppress this message by setting them explicitly. Run the\r\nfollowing command and follow the instructions in your editor to edit\r\nyour configuration file:\r\n\r\n    git config --global --edit\r\n\r\nAfter doing this, you may fix the identity used for this commit with:\r\n\r\n    git commit --amend --reset-author\r\n\r\n 1 file changed, 1 insertion(+)\r\n create mode 100644 test.txt\r\n<\/code><\/pre>\n<p>\u4f3c\u4e4e\u6709\u4e00\u6761\u6d88\u606f\u8bf4\uff1a\u201c\u6211\u5df2\u7ecf\u81ea\u52a8\u83b7\u53d6\u4e86\u59d3\u540d\u548c\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u3002\u201d \u8fd9\u91cc\u597d\u50cf\u9700\u8981\u6b63\u786e\u8bbe\u7f6e\u4e00\u4e0b\u2026<\/p>\n<h3>6. \u67e5\u770b\u65e5\u5fd7\u8bd5\u8bd5\u770b<\/h3>\n<pre class=\"post-pre\"><code>$ git log\r\ncommit bba183d1ea41789b5737085e2e8c5b7f2fc54859\r\nAuthor: xxx xxx &lt;xxx@xxx.co.jp&gt;\r\nDate:   Tue Mar 28 14:53:49 2017 +0900\r\n\r\n    \u30b3\u30df\u30c3\u30c8\u30c6\u30b9\u30c8 \u30d5\u30a1\u30a4\u30eb\u306e\u8ffd\u52a0\r\n<\/code><\/pre>\n<p>\u60a8\u53ef\u4ee5\u67e5\u770b\u5148\u524d\u7684\u63d0\u4ea4\u3002<\/p>\n<h3>\u8bf7\u5c1d\u8bd5\u66f4\u6539\u7528\u6237\u548c\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u3002<\/h3>\n<p>\u56e0\u4e3a\u5728\u4e4b\u524d\u7684\u63d0\u4ea4\u4e2d\u6709\u51fa\u73b0\u6d88\u606f\uff0c\u6240\u4ee5\u6682\u65f6\u8bbe\u7f6e\u4e86\u4e34\u65f6\u7684\u7528\u6237\u548c\u5730\u5740\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git config --global user.name \"takezoh\"\r\n$ git config --global user.email \"takezoh@hogehoge.co.jp\"\r\n<\/code><\/pre>\n<p>\u6211\u5c06\u786e\u8ba4\u5185\u5bb9\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git config --global --list\r\nuser.name=takezoh\r\nuser.email=takezoh@hogehoge.co.jp\r\n<\/code><\/pre>\n<h3>8. \u8bd5\u4e00\u8bd5\u53cd\u6620\u53d8\u66f4<\/h3>\n<p>\u6211\u5c06\u5c1d\u8bd5\u8f93\u5165\u5148\u524d\u6d88\u606f\u4e2d\u63d0\u5230\u7684\u547d\u4ee4\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git commit --amend --reset-author\r\n<\/code><\/pre>\n<p>\u6211\u7684vi\u7f16\u8f91\u5668\u542f\u52a8\u4e86\u3002<br \/>\n\u867d\u7136\u611f\u89c9\u5f88\u6000\u5ff5\uff0c\u4f46\u662f\u6211\u73b0\u5728\u4ec0\u4e48\u90fd\u4e0d\u505a\uff0c\u5148\u7528ZZ\uff08Shift+zz\uff09\u6765\u7ed3\u675f\u7f16\u8f91\u3002<br \/>\n\u5173\u4e8evi\u547d\u4ee4\uff0c\u8bf7\u53c2\u8003\u4ee5\u4e0b\u9875\u9762\u3002<\/p>\n<ul class=\"post-ul\">vi\u30b3\u30de\u30f3\u30c9\uff08vim\u30b3\u30de\u30f3\u30c9\uff09\u4e00\u89a7\uff08\u691c\u7d22\u30fb\u7f6e\u63db\uff09<\/ul>\n<pre class=\"post-pre\"><code>[master 840b9bd] \u30b3\u30df\u30c3\u30c8\u30c6\u30b9\u30c8 \u30d5\u30a1\u30a4\u30eb\u306e\u8ffd\u52a0\r\n 1 file changed, 1 insertion(+)\r\n create mode 100644 test.txt\r\n<\/code><\/pre>\n<p>\u518d\u6b21\u67e5\u770b\u65e5\u5fd7\uff0c\u53d1\u73b0\u5df2\u7ecf\u53cd\u6620\u4e86\u4f5c\u8005\u7684\u66f4\u6539\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git log\r\ncommit 840b9bd0b5857262d28a07cc4add0056888b9ff1\r\nAuthor: takezoh &lt;takezoh@hogehoge.co.jp&gt;\r\nDate:   Tue Mar 28 15:56:59 2017 +0900\r\n\r\n    \u30b3\u30df\u30c3\u30c8\u30c6\u30b9\u30c8 \u30d5\u30a1\u30a4\u30eb\u306e\u8ffd\u52a0\r\n<\/code><\/pre>\n<h3>\u5c1d\u8bd5\u4fee\u6539\u6587\u4ef6\u3002<\/h3>\n<p>\u4fee\u6539test.txt\u6587\u4ef6\u5e76\u6dfb\u52a0\u6587\u672c\u3002<\/p>\n<pre class=\"post-pre\"><code>TEST!!\r\n\u30c6\u30b9\u30c8 \/\/\u2190\u8ffd\u52a0\r\n<\/code><\/pre>\n<h3>11. \u68c0\u67e5\u5df2\u63d0\u4ea4\u7684\u6587\u4ef6\u7684\u5dee\u5f02\u3002<\/h3>\n<pre class=\"post-pre\"><code>$ git diff\r\ndiff --git a\/test.txt b\/test.txt\r\nindex 3a3b7cb..4317b96 100644\r\n--- a\/test.txt\r\n+++ b\/test.txt\r\n@@ -1 +1,2 @@\r\n TEST!!\r\n+&lt;83&gt;e&lt;83&gt;X&lt;83&gt;g&lt;81&gt;I&lt;81&gt;I^M\r\n<\/code><\/pre>\n<p>\u770b\u8d77\u6765\u65e5\u8bed\u65e0\u6cd5\u6b63\u786e\u663e\u793a&#8230;<br \/>\n\u9700\u8981\u652f\u6301bash\u7684\u65e5\u8bed\u5417\uff1f<br \/>\nShift-JIS\u597d\u50cf\u4e0d\u884c&#8230;<br \/>\n\u770b\u6765\u9700\u8981\u5176\u4ed6\u7684\u89e3\u51b3\u529e\u6cd5&#8230;<\/p>\n<p>\u53ea\u8981\u662fUTF-8\u7f16\u7801\uff0c\u57fa\u672c\u4e0a\u5c31\u53ef\u4ee5\u663e\u793a\u51fa\u6765\u4e86\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git diff\r\ndiff --git a\/test.txt b\/test.txt\r\nindex 3a3b7cb..f60fb19 100644\r\n--- a\/test.txt\r\n+++ b\/test.txt\r\n@@ -1 +1,2 @@\r\n TEST!!\r\n+\u30c6\u30b9\u30c8\uff01\uff01^M\r\n<\/code><\/pre>\n<h3>12. \u5c1d\u8bd5\u63d0\u4ea4\u66f4\u6539<\/h3>\n<pre class=\"post-pre\"><code>$ git add test.txt\r\n\r\n$ git status\r\nOn branch master\r\nYour branch is based on 'origin\/master', but the upstream is gone.\r\n  (use \"git branch --unset-upstream\" to fixup)\r\nChanges to be committed:\r\n  (use \"git reset HEAD &lt;file&gt;...\" to unstage)\r\n\r\n        modified:   test.txt\r\n\r\n$ git commit -m '\u30c6\u30ad\u30b9\u30c8\u3092\u5909\u66f4'\r\n[master 225112b] \u30c6\u30ad\u30b9\u30c8\u3092\u5909\u66f4\r\n 1 file changed, 1 insertion(+)\r\n\r\n$ git log\r\ncommit 225112be3ab8a1dda4d9e2cf567ebfc5dbcc2d3e\r\nAuthor: takezoh &lt;takezoh@hogehoge.co.jp&gt;\r\nDate:   Wed Mar 29 12:59:42 2017 +0900\r\n\r\n    \u30c6\u30ad\u30b9\u30c8\u3092\u5909\u66f4\r\n\r\ncommit 840b9bd0b5857262d28a07cc4add0056888b9ff1\r\nAuthor: takezoh &lt;takezoh@hogehoge.co.jp&gt;\r\nDate:   Tue Mar 28 15:56:59 2017 +0900\r\n\r\n    \u30b3\u30df\u30c3\u30c8\u30c6\u30b9\u30c8 \u30d5\u30a1\u30a4\u30eb\u306e\u8ffd\u52a0\r\n<\/code><\/pre>\n<h3>\u5c1d\u8bd5\u6dfb\u52a0\u4e00\u4e2a\u65e5\u8bed\u6587\u4ef6\u3002<\/h3>\n<pre class=\"post-pre\"><code>$ git add \u30c6\u30b9\u30c8.txt\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>$ git status\r\nOn branch master\r\nYour branch is based on 'origin\/master', but the upstream is gone.\r\n  (use \"git branch --unset-upstream\" to fixup)\r\nChanges to be committed:\r\n  (use \"git reset HEAD &lt;file&gt;...\" to unstage)\r\n\r\n        new file:   \"\\343\\203\\206\\343\\202\\271\\343\\203\\210.txt\"\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>$ git diff --cached\r\ndiff --git \"a\/\\343\\203\\206\\343\\202\\271\\343\\203\\210.txt\" \"b\/\\343\\203\\206\\343\\202\\271\\343\\203\\210.txt\"\r\nnew file mode 100644\r\nindex 0000000..95eace3\r\n--- \/dev\/null\r\n+++ \"b\/\\343\\203\\206\\343\\202\\271\\343\\203\\210.txt\"\r\n@@ -0,0 +1 @@\r\n+&lt;83&gt;e&lt;83&gt;X&lt;83&gt;g&lt;81&gt;I&lt;81&gt;I^M\r\n\r\n<\/code><\/pre>\n<p>\u770b\u8d77\u6765\u6587\u5b57\u4e71\u7801\u4e86&#8230;<br \/>\n\u6211\u4f1a\u7a0d\u540e\u67e5\u627e\u8fd9\u65b9\u9762\u7684\u8bbe\u7f6e\u7b49\u4fe1\u606f\u3002<\/p>\n<h3>\u5c1d\u8bd5\u63d0\u4ea4\u65e5\u8bed\u6587\u4ef6\u3002<\/h3>\n<pre class=\"post-pre\"><code>$ git commit -m '\u65e5\u672c\u8a9e\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30df\u30c3\u30c8'\r\n[master 2090d55] \u65e5\u672c\u8a9e\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30df\u30c3\u30c8\r\n 1 file changed, 1 insertion(+)\r\n create mode 100644 \"\\343\\203\\206\\343\\202\\271\\343\\203\\210.txt\"\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>$ git show\r\ncommit 2090d55fb9c14fa3bbeef779fcc24c366955b5f6\r\nAuthor: takezoh &lt;takezoh@hogehoge.co.jp&gt;\r\nDate:   Wed Mar 29 20:05:31 2017 +0900\r\n\r\n    \u65e5\u672c\u8a9e\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30df\u30c3\u30c8\r\n\r\ndiff --git \"a\/\\343\\203\\206\\343\\202\\271\\343\\203\\210.txt\" \"b\/\\343\\203\\206\\343\\202\\271\\343\\203\\210.txt\"\r\nnew file mode 100644\r\nindex 0000000..95eace3\r\n--- \/dev\/null\r\n+++ \"b\/\\343\\203\\206\\343\\202\\271\\343\\203\\210.txt\"\r\n@@ -0,0 +1 @@\r\n+&lt;83&gt;e&lt;83&gt;X&lt;83&gt;g&lt;81&gt;I&lt;81&gt;I^M\r\n<\/code><\/pre>\n<h3>15. \u8981\u4e0d\u8981\u8bd5\u7740\u63a8\u4e00\u4e0b\uff1f\u63a8\u5230\u54ea\u513f\uff1f<\/h3>\n<p>\u6211\u6700\u521d\u521b\u5efa\u7684\u5de5\u4f5c\u4ed3\u5e93\u6267\u884c\u4e86add\u548ccommit\u64cd\u4f5c\u3002<br \/>\n\u8fd9\u4ec5\u4ec5\u662f\u5bf9\u5de5\u4f5c\u4ed3\u5e93\u8fdb\u884c\u4e86\u63d0\u4ea4\u3002<\/p>\n<p>\u54e6\uff1f\u4f46\u662f\u8fd9\u6837\u7684\u8bdd\uff0c\u65e0\u6cd5\u8fdb\u884cpush\u6216\u8005pull\u64cd\u4f5c\uff0c\u5bf9\u5427\uff1f<\/p>\n<pre class=\"post-pre\"><code>$ git push\r\nfatal: No configured push destination.\r\nEither specify the URL from the command-line or configure a remote repository using\r\n\r\n    git remote add &lt;name&gt; &lt;url&gt;\r\n\r\nand then push using the remote name\r\n\r\n    git push &lt;name&gt;\r\n<\/code><\/pre>\n<p>\u63a8\uff1f\u5bf9\u4e8e\u54ea\u91cc\u6765\u8bf4\uff1f<\/p>\n<pre class=\"post-pre\"><code>$ git remote\r\n<\/code><\/pre>\n<p>\u5f53\u7136\u6ca1\u6709\u4efb\u4f55\u663e\u793a\u7684\u4e1c\u897f\u3002<\/p>\n<p>\u9996\u5148\uff0c\u5728\u9879\u76ee\u4e2d\uff0c\u6211\u4eec\u4f1a\u4f7f\u7528GitHub\u7b49\u5e73\u53f0\u5efa\u7acb\u5171\u4eab\u4ed3\u5e93\u6765\u8fdb\u884c\u670d\u52a1\u5668\u7684\u64cd\u4f5c\uff0c\u901a\u8fc7push\u548cpull\u6765\u8fdb\u884c\u4ee3\u7801\u7684\u5171\u4eab\u3002<br \/>\n\u56e0\u6b64\uff0c\u6211\u60f3\u5728\u672c\u5730\u7535\u8111\u4e0a\u6784\u5efa\u76f8\u540c\u7684\u73af\u5883\uff0c\u5e76\u8bd5\u7740\u8fdb\u884c\u64cd\u4f5c\u3002<\/p>\n<h3>16.\u6211\u8bd5\u7740\u521b\u5efa\u4e86\u4e00\u4e2a\u5171\u4eab\u4ed3\u5e93\u3002<\/h3>\n<p>\u6211\u8ba1\u5212\u5728\u672c\u5730PC\u4e0a\u521b\u5efa\u4e00\u4e2a\u5171\u4eab\u5b58\u50a8\u5e93\uff0c\u5e76\u5bf9\u8be5\u5b58\u50a8\u5e93\u5c1d\u8bd5\u5404\u79cd\u64cd\u4f5c\u3002<\/p>\n<p>\u5148\u521b\u5efa\u4e00\u4e2a\u540d\u4e3agit_test.git\u7684\u6587\u4ef6\u5939\u3002\uff08\u5171\u4eab\u4ed3\u5e93\u7684\u547d\u540d\u60ef\u4f8b\u662f\u5728\u6587\u4ef6\u5939\u540d\u540e\u9762\u52a0\u4e0a.git\u5417\uff1f\uff09<br \/>\n\u5728\u8be5\u6587\u4ef6\u5939\u4e0b\u521b\u5efa\u5171\u4eab\u4ed3\u5e93\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git init --bare --shared\r\n<\/code><\/pre>\n<p>\u73b0\u5728\uff0c\u5728bash\u7a97\u53e3\u7684\u6587\u4ef6\u5939\u540d\u79f0\u65c1\u8fb9\u663e\u793a\u4e86&#8221;(BARE:master)&#8221;\uff0c\u4e0b\u9762\u7684\u6587\u4ef6\u88ab\u751f\u6210\u4e86\u3002<br \/>\n\u4ee5\u524d\u53ea\u6709.git\u6587\u4ef6\uff0c\u4f46\u662f\u73b0\u5728\u4f3c\u4e4e\u751f\u6210\u4e86\u7c7b\u4f3c\u4e8e\u521b\u5efaSVN\u5b58\u50a8\u5e93\u7684\u6587\u4ef6\u3002<\/p>\n<pre class=\"post-pre\"><code>config\r\ndescription\r\nHEAD\r\nhooks\/\r\ninfo\/\r\nobjects\/\r\nrefs\/\r\n<\/code><\/pre>\n<h3>17. \u6211\u4eec\u6765\u5c1d\u8bd5\u514b\u9686\u4e00\u4e0b<\/h3>\n<p>\u6211\u4eec\u5c06\u521b\u5efa\u4e00\u4e2a\u540d\u4e3a&#8221;work&#8221;\u7684\u6587\u4ef6\u5939\uff0c\u5e76\u5c06\u5171\u4eab\u4ed3\u5e93\u514b\u9686\u5230\u8be5\u6587\u4ef6\u5939\u4e2d\u3002<br \/>\n\u5728\u8be5\u6587\u4ef6\u5939\u4e2d\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git clone \/c\/test\/git_test.git\r\n<\/code><\/pre>\n<p>\u5728work\u4e0b\u521b\u5efa\u4e86\u4e00\u4e2a\u540d\u4e3agit_test\u7684\u6587\u4ef6\u5939\uff0c\u5e76\u5728\u8be5\u6587\u4ef6\u5939\u4e0b\u521b\u5efa\u4e86.git\u6587\u4ef6\u5939\u3002<br \/>\n\u770b\u8d77\u6765\u5982\u679c\u4e0d\u6307\u5b9a\u8def\u5f84\uff0c\u5de5\u4f5c\u76ee\u5f55\u5c06\u5206\u914d\u7ed9\u4ece\u5b58\u50a8\u5e93\u540d\u79f0\u4e2d\u53bb\u9664.git\u7684\u8def\u5f84\u2026<\/p>\n<p>\u5982\u679c\u8981\u6307\u5b9a\u514b\u9686\u8def\u5f84\uff0c\u8bf7\u5728\u4ed3\u5e93\u540e\u9762\u6307\u5b9a\u8def\u5f84\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git clone \/c\/test\/git_test.git .\/git_test2\r\n<\/code><\/pre>\n<p>\u5728work\u4e0b\u521b\u5efa\u4e86\u4e00\u4e2a\u540d\u4e3agit_test2\u7684\u6587\u4ef6\u5939\u3002<\/p>\n<p>\u5982\u679c\u60f3\u5c06\u4ee5\u4e0b\u7684\u5185\u5bb9\u4f5c\u4e3a\u5de5\u4f5c\u5e93\u5b58\u50a8\u5728\u4f5c\u4e1a\u4ee3\u7801\u5e93\u4e2d\uff0c\u8bf7\u53c2\u7167\u4ee5\u4e0b\u65b9\u5f0f\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git clone \/c\/test\/git_test.git .\/\r\n<\/code><\/pre>\n<p>\u521b\u5efa\u4e86\u4e00\u4e2a.git\u6587\u4ef6\u5939\u3002<br \/>\n\u5176\u4ed6\u90e8\u5206\u5f53\u7136\u662f\u7a7a\u7684\u3002<\/p>\n<h3>\u5c1d\u8bd5\u5c06\u514b\u9686\u7684\u5de5\u4f5c\u4ee3\u7801\u5e93\u8fdb\u884c\u6dfb\u52a0\u548c\u63d0\u4ea4\u3002<\/h3>\n<p>\u4ee5\u76f8\u540c\u7684\u6b65\u9aa4\u5c06\u6587\u4ef6\u6dfb\u52a0\u5e76\u63d0\u4ea4\u3002<\/p>\n<h3>19.\u5c1d\u8bd5\u5c06\u4ee3\u7801\u63a8\u9001\u5230\u5171\u6709\u4ed3\u5e93<\/h3>\n<pre class=\"post-pre\"><code>$ git remote\r\norigin\r\n<\/code><\/pre>\n<p>\u514b\u9686\u65f6\u4f3c\u4e4e\u4f1a\u521b\u5efa\u4e00\u4e2a\u540d\u4e3aorigin\u7684\u76ee\u6807\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git push origin\r\nCounting objects: 9, done.\r\nDelta compression using up to 8 threads.\r\nCompressing objects: 100% (4\/4), done.\r\nWriting objects: 100% (9\/9), 819 bytes | 0 bytes\/s, done.\r\nTotal 9 (delta 0), reused 0 (delta 0)\r\nTo C:\/product\/git\/git_test.git\/\r\n * [new branch]      master -&gt; master\r\n<\/code><\/pre>\n<p>\u770b\u8d77\u6765\u5df2\u7ecf\u6210\u529f\u5730\u8fdb\u884c\u4e86\u63a8\u9001\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git pull origin\r\nAlready up-to-date.\r\n<\/code><\/pre>\n<p>\u4f3c\u4e4e\u62c9\u53d6\u540e\u5df2\u7ecf\u66f4\u65b0\u5b8c\u6bd5\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git log origin\/master\r\n<\/code><\/pre>\n<p>\u6211\u4e5f\u4f1a\u68c0\u67e5\u516c\u5171\u4ed3\u5e93\u7684\u65e5\u5fd7\u3002<br \/>\n\u7531\u4e8e\u6ca1\u6709\u5176\u4ed6\u4eba\u7684\u63d0\u4ea4\uff0c\u6240\u4ee5\u5185\u5bb9\u662f\u76f8\u540c\u7684\u3002<\/p>\n<h3>20. \uff22\u5148\u751f\u5c1d\u8bd5\u514b\u9686\uff08\u5230\u53e6\u4e00\u4e2a\u5de5\u4f5c\u76ee\u5f55\uff09\u3002<\/h3>\n<p>\u6211\u5c06\u5728\u5176\u4ed6\u6587\u4ef6\u5939\u4e2d\u514b\u9686\u4e00\u4efd\u7528\u4e8e\u5de5\u4f5c\u7684\u526f\u672c\uff0c\u5047\u8bbe\u5bf9\u8c61\u662fB\u5148\u751f\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git clone \/c\/product\/git\/git_test.git\/ .\/\r\nCloning into '.'...\r\ndone.\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>.git\/\r\ntest.txt\r\n\u30c6\u30b9\u30c8.txt\r\n<\/code><\/pre>\n<h3>21. B\u5148\u751f\u5c1d\u8bd5\u4fee\u6539\u6587\u4ef6<\/h3>\n<pre class=\"post-pre\"><code>TEST!!\r\n\u30c6\u30b9\u30c8\uff01\uff01\r\nhogehoge!!  \/\/ \u2190\u8ffd\u52a0\r\n<\/code><\/pre>\n<p>\u786e\u8ba4B\u5148\u751f\u7684\u72b6\u6001\u5728\u4fee\u6539\u540e\u3002<br \/>\n\u786e\u8ba4test.txt\u5df2\u7ecf\u88ab\u4fee\u6539\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git status\r\nOn branch master\r\nYour branch is up-to-date with 'origin\/master'.\r\nChanges not staged for commit:\r\n  (use \"git add &lt;file&gt;...\" to update what will be committed)\r\n  (use \"git checkout -- &lt;file&gt;...\" to discard changes in working directory)\r\n\r\n        modified:   test.txt\r\n\r\nno changes added to commit (use \"git add\" and\/or \"git commit -a\")\r\n<\/code><\/pre>\n<p>\u4e00\u65b9\u9762\uff0cA\u5148\u751f\u7684\u60c5\u51b5\u6ca1\u6709\u4efb\u4f55\u6539\u53d8\uff0c\u6240\u4ee5\u4e0d\u9700\u8981\u505a\u4efb\u4f55\u52a8\u4f5c\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git status\r\nOn branch master\r\nYour branch is up-to-date with 'origin\/master'.\r\nnothing to commit, working tree clean\r\n<\/code><\/pre>\n<h3>22. B\u5148\u751f\u5c1d\u8bd5\u8fdb\u884cadd\u3001commit\u3001push\u3002<\/h3>\n<pre class=\"post-pre\"><code>$ git add test.txt\r\n\r\n$ git commit -m 'B\u3055\u3093\u306e\u5909\u66f4\u3092\u30b3\u30df\u30c3\u30c8 hogehoge\u8ffd\u52a0\u3057\u307e\u3057\u305f'\r\n[master 4806924] B\u3055\u3093\u306e\u5909\u66f4\u3092\u30b3\u30df\u30c3\u30c8 hogehoge\u8ffd\u52a0\u3057\u307e\u3057\u305f\r\n 1 file changed, 1 insertion(+)\r\n\r\n$ git log -2\r\ncommit 4806924508c44f967053b3378aff3f930ca16ee8\r\nAuthor: hogehoge &lt;takezoh@hogehoge.co.jp&gt;\r\nDate:   Thu Mar 30 12:16:19 2017 +0900\r\n\r\n    B\u3055\u3093\u306e\u5909\u66f4\u3092\u30b3\u30df\u30c3\u30c8 hogehoge\u8ffd\u52a0\u3057\u307e\u3057\u305f\r\n\r\ncommit 2090d55fb9c14fa3bbeef779fcc24c366955b5f6\r\nAuthor: takezoh &lt;takezoh@hogehoge.co.jp&gt;\r\nDate:   Wed Mar 29 20:05:31 2017 +0900\r\n\r\n    \u65e5\u672c\u8a9e\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30df\u30c3\u30c8\r\n<\/code><\/pre>\n<p>\u6211\u8981\u5c06\u4ee3\u7801\u63d0\u4ea4\u5230B\u5148\u751f\u7684\u4ee3\u7801\u4ed3\u5e93\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git push origin\r\nCounting objects: 3, done.\r\nDelta compression using up to 8 threads.\r\nCompressing objects: 100% (2\/2), done.\r\nWriting objects: 100% (3\/3), 367 bytes | 0 bytes\/s, done.\r\nTotal 3 (delta 0), reused 0 (delta 0)\r\nTo C:\/product\/git\/git_test.git\/\r\n   2090d55..4806924  master -&gt; master\r\n<\/code><\/pre>\n<p>\u6211\u4e5f\u4f1a\u5c06\u4ee3\u7801\u63a8\u9001\u5230\u5171\u6709\u4ed3\u5e93\u3002<\/p>\n<p>On one hand, A\u5148\u751f&#8230;<\/p>\n<pre class=\"post-pre\"><code>$ git log -2\r\ncommit 2090d55fb9c14fa3bbeef779fcc24c366955b5f6\r\nAuthor: takezoh &lt;takezoh@hogehoge.co.jp&gt;\r\nDate:   Wed Mar 29 20:05:31 2017 +0900\r\n\r\n    \u65e5\u672c\u8a9e\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30df\u30c3\u30c8\r\n\r\ncommit 225112be3ab8a1dda4d9e2cf567ebfc5dbcc2d3e\r\nAuthor: takezoh &lt;takezoh@hogehoge.co.jp&gt;\r\nDate:   Wed Mar 29 12:59:42 2017 +0900\r\n\r\n    \u30c6\u30ad\u30b9\u30c8\u3092\u5909\u66f4\r\n<\/code><\/pre>\n<p>\u5f53\u7136\u8fd8\u662f\u4e4b\u524d\u7684\u6837\u5b50\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git log origin\/master -2\r\ncommit 2090d55fb9c14fa3bbeef779fcc24c366955b5f6\r\nAuthor: takezoh &lt;takezoh@hogehoge.co.jp&gt;\r\nDate:   Wed Mar 29 20:05:31 2017 +0900\r\n\r\n    \u65e5\u672c\u8a9e\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30df\u30c3\u30c8\r\n\r\ncommit 225112be3ab8a1dda4d9e2cf567ebfc5dbcc2d3e\r\nAuthor: takezoh &lt;takezoh@hogehoge.co.jp&gt;\r\nDate:   Wed Mar 29 12:59:42 2017 +0900\r\n\r\n    \u30c6\u30ad\u30b9\u30c8\u3092\u5909\u66f4\r\n<\/code><\/pre>\n<p>\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\u67e5\u770b\u5171\u4eab\u5b58\u50a8\u5e93\u7684\u65e5\u5fd7\uff0c\u72b6\u6001\u4fdd\u6301\u4e0d\u53d8\u662f\u56e0\u4e3a\u8fd9\u79cd\u60c5\u51b5\u4e0b\u7684\u7279\u6027\u5417\uff1f<\/p>\n<h3>\u5728\u539f\u59cb\u5de5\u4f5c\u5b58\u50a8\u5e93\u4e2d\u5c1d\u8bd5\u8fdb\u884cpull\u64cd\u4f5c\u7684\u662fA\u5148\u751f\u3002<\/h3>\n<pre class=\"post-pre\"><code>$ git pull\r\nremote: Counting objects: 3, done.\r\nremote: Compressing objects: 100% (2\/2), done.\r\nremote: Total 3 (delta 0), reused 0 (delta 0)\r\nUnpacking objects: 100% (3\/3), done.\r\nFrom C:\/product\/git\/git_test\r\n   2090d55..4806924  master     -&gt; origin\/master\r\nUpdating 2090d55..4806924\r\nFast-forward\r\n test.txt | 1 +\r\n 1 file changed, 1 insertion(+)\r\n<\/code><\/pre>\n<p>\u6210\u529f\u5730\u66f4\u65b0\u4e86\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git log -2\r\ncommit 4806924508c44f967053b3378aff3f930ca16ee8\r\nAuthor: hogehoge &lt;takezoh@hogehoge.co.jp&gt;\r\nDate:   Thu Mar 30 12:16:19 2017 +0900\r\n\r\n    B\u3055\u3093\u306e\u5909\u66f4\u3092\u30b3\u30df\u30c3\u30c8 hogehoge\u8ffd\u52a0\u3057\u307e\u3057\u305f\r\n\r\ncommit 2090d55fb9c14fa3bbeef779fcc24c366955b5f6\r\nAuthor: takezoh &lt;takezoh@hogehoge.co.jp&gt;\r\nDate:   Wed Mar 29 20:05:31 2017 +0900\r\n\r\n    \u65e5\u672c\u8a9e\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u30b3\u30df\u30c3\u30c8\r\n<\/code><\/pre>\n<p>\u8bf7\u5728\u6b64\u9605\u8bfb\u53c2\u8003\u9875\u9762\u540e\u518d\u6b21\u68c0\u67e5\u4e00\u4e0b\u3002\u6211\u8ba4\u4e3a\u5728\u8fdb\u884c\u64cd\u4f5c\u548c\u4f53\u9a8c\u540e\u518d\u6b21\u67e5\u770b\u4f1a\u52a0\u6df1\u7406\u89e3\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Git \u306e\u57fa\u790e\u52c9\u5f37 \u301cGit \u306b\u3088\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u3092\u4f7f\u3046\u301c<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u3053\u308f\u304f\u306a\u3044 Git<\/ul>\n<h3>\u5c1d\u8bd5\u5f15\u53d1\u51b2\u7a81\u3002<\/h3>\n<p>\u6211\u4f1a\u5206\u522b\u4fee\u6539A\u548cB\u7684test.txt\u6587\u4ef6\u5982\u4e0b\u3002<\/p>\n<pre class=\"post-pre\"><code>TEST!!\r\n\u30c6\u30b9\u30c8\uff01\uff01\r\nhogehoge!!\r\n\uff21\u3055\u3093\u306e\u8ffd\u52a0\u3002\r\n\u30b3\u30f3\u30d5\u30ea\u30af\u30c8\u8d77\u304d\u308b\u304b\u306a\uff1f\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>TEST!!\r\n\u30c6\u30b9\u30c8\uff01\uff01\r\nhogehoge!!\r\n\uff22\u3055\u3093\u306e\u8ffd\u52a0\u3002\r\n\u30b3\u30f3\u30d5\u30ea\u30af\u30c8\u304c\u8d77\u304d\u305f\u3089\u3069\u3046\u3057\u3088\u3046...\r\n<\/code><\/pre>\n<p>\u9996\u5148\uff0c\u5c06\u6bcf\u4e2a\u66f4\u6539\u63d0\u4ea4\u5230\u5de5\u4f5c\u5e93\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git commit -m '\uff21\u3055\u3093\u306e\u5909\u66f4\u3092\u30b3\u30df\u30c3\u30c8'\r\n[master 1726af7] \uff21\u3055\u3093\u306e\u5909\u66f4\u3092\u30b3\u30df\u30c3\u30c8\r\n 1 file changed, 2 insertions(+)\r\n\r\n$ git log -2\r\ncommit 1726af73ee128a949e76c27a38bfdb05396ff04e\r\nAuthor: takezoh &lt;takezoh@hogehoge.co.jp&gt;\r\nDate:   Tue Apr 4 12:22:55 2017 +0900\r\n\r\n    \uff21\u3055\u3093\u306e\u5909\u66f4\u3092\u30b3\u30df\u30c3\u30c8\r\n\r\ncommit 4806924508c44f967053b3378aff3f930ca16ee8\r\nAuthor: hogehoge &lt;takezoh@hogehoge.co.jp&gt;\r\nDate:   Thu Mar 30 12:16:19 2017 +0900\r\n\r\n    B\u3055\u3093\u306e\u5909\u66f4\u3092\u30b3\u30df\u30c3\u30c8 hogehoge\u8ffd\u52a0\u3057\u307e\u3057\u305f\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>$ git commit test.txt -m '\uff22\u3055\u3093\u306e\u5909\u66f4\u3092\u30b3\u30df\u30c3\u30c8'\r\n[master 42e9c92] \uff22\u3055\u3093\u306e\u5909\u66f4\u3092\u30b3\u30df\u30c3\u30c8\r\n 1 file changed, 2 insertions(+)\r\n\r\n$ git log -2\r\ncommit 42e9c926f974ce74268c96c9b74a185a7199a2f2\r\nAuthor: hogehoge &lt;takezoh@hogehoge.co.jp&gt;\r\nDate:   Tue Apr 4 12:26:00 2017 +0900\r\n\r\n    \uff22\u3055\u3093\u306e\u5909\u66f4\u3092\u30b3\u30df\u30c3\u30c8\r\n\r\ncommit 4806924508c44f967053b3378aff3f930ca16ee8\r\nAuthor: hogehoge &lt;takezoh@hogehoge.co.jp&gt;\r\nDate:   Thu Mar 30 12:16:19 2017 +0900\r\n\r\n    B\u3055\u3093\u306e\u5909\u66f4\u3092\u30b3\u30df\u30c3\u30c8 hogehoge\u8ffd\u52a0\u3057\u307e\u3057\u305f\r\n<\/code><\/pre>\n<p>B\u5148\u751f\u5148\u628a\u9879\u76ee\u63a8\u9001\u5230\u5171\u4eab\u4ed3\u5e93\u4e2d\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git push origin\r\nCounting objects: 3, done.\r\nDelta compression using up to 8 threads.\r\nCompressing objects: 100% (3\/3), done.\r\nWriting objects: 100% (3\/3), 426 bytes | 0 bytes\/s, done.\r\nTotal 3 (delta 0), reused 0 (delta 0)\r\nTo C:\/product\/git\/git_test.git\/\r\n   4806924..42e9c92  master -&gt; master\r\n<\/code><\/pre>\n<p>\u6211\u6210\u529f\u5730\u8fdb\u884c\u4e86\u63a8\u9001\uff0c\u6ca1\u6709\u51fa\u4efb\u4f55\u95ee\u9898\u3002<\/p>\n<p>\u6211\u4f1a\u5728A\u5148\u751f\u7684\u5de5\u4f5c repository \u4e2d\u8fdb\u884c pull \u64cd\u4f5c\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git pull\r\nremote: Counting objects: 3, done.\r\nremote: Compressing objects: 100% (3\/3), done.\r\nremote: Total 3 (delta 0), reused 0 (delta 0)\r\nUnpacking objects: 100% (3\/3), done.\r\nFrom C:\/product\/git\/git_test\r\n   4806924..42e9c92  master     -&gt; origin\/master\r\nAuto-merging test.txt\r\nCONFLICT (content): Merge conflict in test.txt\r\nAutomatic merge failed; fix conflicts and then commit the result.\r\n<\/code><\/pre>\n<p>\u597d\u50cf\u53d1\u751f\u4e86\u51b2\u7a81&#8230;<br \/>\n\u770b\u770b\u5408\u5e76\u540e\u7684test.txt\uff0c\u53d1\u73b0&#8230;<\/p>\n<pre class=\"post-pre\"><code>TEST!!\r\n\u30c6\u30b9\u30c8\uff01\uff01\r\nhogehoge!!\r\n&lt;&lt;&lt;&lt;&lt;&lt;&lt; HEAD\r\n\uff21\u3055\u3093\u306e\u8ffd\u52a0\u3002\r\n\u30b3\u30f3\u30d5\u30ea\u30af\u30c8\u8d77\u304d\u308b\u304b\u306a\uff1f\r\n=======\r\n\uff22\u3055\u3093\u306e\u8ffd\u52a0\u3002\r\n\u30b3\u30f3\u30d5\u30ea\u30af\u30c8\u304c\u8d77\u304d\u305f\u3089\u3069\u3046\u3057\u3088\u3046...\r\n&gt;&gt;&gt;&gt;&gt;&gt;&gt; 42e9c926f974ce74268c96c9b74a185a7199a2f2\r\n<\/code><\/pre>\n<p>\u53ef\u4ee5\u770b\u51fa\u5728\u540c\u4e00\u4f4d\u7f6e\u4e0a\u6709\u51b2\u7a81\u53d1\u751f\u3002<\/p>\n<h3>25. \u89e3\u51b3\u51b2\u7a81<\/h3>\n<p>\u8bf7\u9002\u5f53\u4fee\u590d\u51b2\u7a81\u7684\u6587\u4ef6\u3002\u6b64\u6b21\u6211\u4eec\u5c06\u53cd\u6620A\u548cB\u4e24\u4f4d\u7684\u4fee\u6b63\u3002\u5728\u5408\u5e76\u4e4b\u524d\uff0c\u8bf7\u786e\u4fdd\u7a0b\u5e8f\u7b49\u51b2\u7a81\u5df2\u7ecf\u5f97\u5230\u6b63\u786e\u4fee\u590d\uff0c\u5e76\u786e\u8ba4\u66f4\u6539\u7684\u4f4d\u7f6e\u3002<\/p>\n<pre class=\"post-pre\"><code>TEST!!\r\n\u30c6\u30b9\u30c8\uff01\uff01\r\nhogehoge!!\r\n\uff21\u3055\u3093\u306e\u8ffd\u52a0\u3002\r\n\u30b3\u30f3\u30d5\u30ea\u30af\u30c8\u8d77\u304d\u308b\u304b\u306a\uff1f\r\n\uff22\u3055\u3093\u306e\u8ffd\u52a0\u3002\r\n\u30b3\u30f3\u30d5\u30ea\u30af\u30c8\u304c\u8d77\u304d\u305f\u3089\u3069\u3046\u3057\u3088\u3046...\r\n<\/code><\/pre>\n<p>\u7531\u4e8e\u51b2\u7a81\u5f97\u4ee5\u89e3\u51b3\uff0c\u6211\u5c06\u518d\u6b21\u63d0\u4ea4\u5230\u5de5\u4f5c\u4ed3\u5e93\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git status\r\nOn branch master\r\nYour branch and 'origin\/master' have diverged,\r\nand have 1 and 1 different commits each, respectively.\r\n  (use \"git pull\" to merge the remote branch into yours)\r\nYou have unmerged paths.\r\n  (fix conflicts and run \"git commit\")\r\n  (use \"git merge --abort\" to abort the merge)\r\n\r\nUnmerged paths:\r\n  (use \"git add &lt;file&gt;...\" to mark resolution)\r\n\r\n        both modified:   test.txt\r\n\r\nUntracked files:\r\n  (use \"git add &lt;file&gt;...\" to include in what will be committed)\r\n\r\n        test.txt.orig\r\n\r\nno changes added to commit (use \"git add\" and\/or \"git commit -a\")\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>$ git add test.txt\r\n\r\n$ git status\r\nOn branch master\r\nYour branch and 'origin\/master' have diverged,\r\nand have 1 and 1 different commits each, respectively.\r\n  (use \"git pull\" to merge the remote branch into yours)\r\nAll conflicts fixed but you are still merging.\r\n  (use \"git commit\" to conclude merge)\r\n\r\nChanges to be committed:\r\n\r\n        modified:   test.txt\r\n\r\nUntracked files:\r\n  (use \"git add &lt;file&gt;...\" to include in what will be committed)\r\n\r\n        test.txt.orig\r\n\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>$ git commit -m '\u30b3\u30f3\u30d5\u30ea\u30af\u30c8\u3092\u89e3\u6d88'\r\n[master c588972] \u30b3\u30f3\u30d5\u30ea\u30af\u30c8\u3092\u89e3\u6d88\r\n\r\n$ git log -2\r\ncommit c5889725472ceba93e7ec3cffdd66e608b014fac\r\nMerge: 1726af7 42e9c92\r\nAuthor: takezoh &lt;takezoh@hogehoge.co.jp&gt;\r\nDate:   Tue Apr 4 12:55:34 2017 +0900\r\n\r\n    \u30b3\u30f3\u30d5\u30ea\u30af\u30c8\u3092\u89e3\u6d88\r\n\r\ncommit 42e9c926f974ce74268c96c9b74a185a7199a2f2\r\nAuthor: hogehoge &lt;takezoh@hogehoge.co.jp&gt;\r\nDate:   Tue Apr 4 12:26:00 2017 +0900\r\n\r\n    \uff22\u3055\u3093\u306e\u5909\u66f4\u3092\u30b3\u30df\u30c3\u30c8\r\n<\/code><\/pre>\n<p>\u6211\u4f1a\u628aA\u7684\u4fee\u6539\u4e00\u8d77\u63a8\u9001\u5230\u5171\u4eab\u5b58\u50a8\u5e93\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git push\r\nCounting objects: 6, done.\r\nDelta compression using up to 8 threads.\r\nCompressing objects: 100% (6\/6), done.\r\nWriting objects: 100% (6\/6), 679 bytes | 0 bytes\/s, done.\r\nTotal 6 (delta 2), reused 0 (delta 0)\r\nTo C:\/product\/git\/git_test.git\/\r\n   42e9c92..c588972  master -&gt; master\r\n<\/code><\/pre>\n<pre class=\"post-pre\"><code>$ git log origin\/master -2\r\ncommit c5889725472ceba93e7ec3cffdd66e608b014fac\r\nMerge: 1726af7 42e9c92\r\nAuthor: takezoh &lt;takezoh@hogehoge.co.jp&gt;\r\nDate:   Tue Apr 4 12:55:34 2017 +0900\r\n\r\n    \u30b3\u30f3\u30d5\u30ea\u30af\u30c8\u3092\u89e3\u6d88\r\n\r\ncommit 42e9c926f974ce74268c96c9b74a185a7199a2f2\r\nAuthor: hogehoge &lt;takezoh@hogehoge.co.jp&gt;\r\nDate:   Tue Apr 4 12:26:00 2017 +0900\r\n\r\n    \uff22\u3055\u3093\u306e\u5909\u66f4\u3092\u30b3\u30df\u30c3\u30c8\r\n<\/code><\/pre>\n<p>\u6211\u4f1a\u518d\u6b21\u5c1d\u8bd5B\u5148\u751f\u7684\u62c9\u53d6\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git pull\r\nremote: Counting objects: 6, done.\r\nremote: Compressing objects: 100% (6\/6), done.\r\nremote: Total 6 (delta 2), reused 0 (delta 0)\r\nUnpacking objects: 100% (6\/6), done.\r\nFrom C:\/product\/git\/git_test\r\n   42e9c92..c588972  master     -&gt; origin\/master\r\nUpdating 42e9c92..c588972\r\nFast-forward\r\n test.txt | 2 ++\r\n 1 file changed, 2 insertions(+)\r\n<\/code><\/pre>\n<p>\u5728\u5408\u5e76\u540e\u7684\u6587\u4ef6\u4e2d\u8fdb\u884c\u4e86\u66f4\u65b0\u3002<\/p>\n<h3>\u5728\u4f5c\u696d\u5b58\u50a8\u5e93\u4e2d\u5c1d\u8bd5\u5206\u652f\u3002<\/h3>\n<p>\u6211\u4f1a\u8bd5\u7740\u521b\u5efa\u4e00\u4e2a\u5206\u652f\u3002<br \/>\n\u7531\u4e8e\u6d89\u53ca\u5230\u5206\u6563\u7248\u672c\u7ba1\u7406\uff0c\u56e0\u6b64\u6211\u4f1a\u5728\u5de5\u4f5c\u4ed3\u5e93\uff08\u672c\u5730\u73af\u5883\uff09\u4e2d\u521b\u5efa\u4e00\u4e2a\u5206\u652f\u3002<\/p>\n<p>\u9996\u5148\u8981\u786e\u8ba4\u5f53\u524d\u5206\u652f\u7684\u72b6\u6001\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git branch\r\n* master\r\n<\/code><\/pre>\n<p>\u6807\u6709*\u53f7\u7684master\u8868\u793a\u5f53\u524d\u5206\u652f\u3002<\/p>\n<p>\u6211\u4f1a\u5c1d\u8bd5\u521b\u5efa\u4e00\u4e2a\u5206\u652f\u3002<br \/>\n\u6211\u4f1a\u5c1d\u8bd5\u521b\u5efa\u4e00\u4e2a\u540d\u4e3alocal_branch_1\u7684\u5206\u652f\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git branch local_branch_1\r\n\r\n$ git branch\r\n  local_branch_1\r\n* master\r\n<\/code><\/pre>\n<p>\u6211\u5c06\u5207\u6362\u5230\u5df2\u521b\u5efa\u7684\u5206\u652f\u8fdb\u884c\u5de5\u4f5c\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git checkout local_branch_1\r\nSwitched to branch 'local_branch_1'\r\n\r\n$ git branch\r\n* local_branch_1\r\n  master\r\n<\/code><\/pre>\n<p>\u63a7\u5236\u53f0\u7684\u6587\u4ef6\u5939\u540d\u79f0\u65c1\u8fb9\u7684\u663e\u793a\u4e5f\u5207\u6362\u4e3a\uff08local_branch_1\uff09\u3002<\/p>\n<p>\u6211\u4f1a\u4fee\u6539test.txt\u5e76\u63d0\u4ea4\u5230\u5206\u652f\u4e0a\u6765\u5c1d\u8bd5\u3002<\/p>\n<pre class=\"post-pre\"><code>TEST!!\r\n\u30c6\u30b9\u30c8\uff01\uff01\r\nhogehoge!!\r\n\uff21\u3055\u3093\u306e\u8ffd\u52a0\u3002\r\n\u30b3\u30f3\u30d5\u30ea\u30af\u30c8\u8d77\u304d\u308b\u304b\u306a\uff1f\r\n\uff22\u3055\u3093\u306e\u8ffd\u52a0\u3002\r\n\u30b3\u30f3\u30d5\u30ea\u30af\u30c8\u304c\u8d77\u304d\u305f\u3089\u3069\u3046\u3057\u3088\u3046...\r\n\u30d6\u30e9\u30f3\u30c1\u5074\u3067\u5909\u66f4\u3002  \/\/ \u2190\u8ffd\u52a0\r\n<\/code><\/pre>\n<p>\u6211\u4f1a\u6dfb\u52a0\u5e76\u63d0\u4ea4\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git add test.txt\r\n\r\n$ git commit -m '\u30d6\u30e9\u30f3\u30c1\u5074\u306b\u30b3\u30df\u30c3\u30c8'\r\n[local_branch_1 beb3317] \u30d6\u30e9\u30f3\u30c1\u5074\u306b\u30b3\u30df\u30c3\u30c8\r\n 1 file changed, 1 insertion(+)\r\n<\/code><\/pre>\n<p>\u6211\u6210\u529f\u5730\u63d0\u4ea4\u4e86\u4ee3\u7801\uff0c\u6ca1\u6709\u9047\u5230\u4efb\u4f55\u95ee\u9898\u3002<\/p>\n<p>\u6211\u4f1a\u68c0\u67e5\u4e00\u4e0b\u65e5\u5fd7\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git log -3\r\ncommit beb3317e6ac54d1c80bdec218055cd5460e2dc96\r\nAuthor: takezoh &lt;takezoh@hogehoge.co.jp&gt;\r\nDate:   Thu Apr 6 12:37:33 2017 +0900\r\n\r\n    \u30d6\u30e9\u30f3\u30c1\u5074\u306b\u30b3\u30df\u30c3\u30c8\r\n\r\ncommit c5889725472ceba93e7ec3cffdd66e608b014fac\r\nMerge: 1726af7 42e9c92\r\nAuthor: takezoh &lt;takezoh@hogehoge.co.jp&gt;\r\nDate:   Tue Apr 4 12:55:34 2017 +0900\r\n\r\n    \u30b3\u30f3\u30d5\u30ea\u30af\u30c8\u3092\u89e3\u6d88\r\n\r\ncommit 42e9c926f974ce74268c96c9b74a185a7199a2f2\r\nAuthor: hogehoge &lt;takezoh@hogehoge.co.jp&gt;\r\nDate:   Tue Apr 4 12:26:00 2017 +0900\r\n\r\n    \uff22\u3055\u3093\u306e\u5909\u66f4\u3092\u30b3\u30df\u30c3\u30c8\r\n<\/code><\/pre>\n<p>\u6211\u5c06\u5c1d\u8bd5\u8fd4\u56de\u5230\u4e3b\u5206\u652f\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git checkout master\r\nSwitched to branch 'master'\r\nYour branch is up-to-date with 'origin\/master'.\r\n<\/code><\/pre>\n<p>\u5728\u8fd9\u4e2a\u65f6\u95f4\u70b9\u4e0a\uff0c\u521a\u521a\u4fee\u6539\u7684test.txt\u5c06\u4f1a\u66ff\u6362\u4e3a\u4e3b\u5206\u652f\u7684\u63d0\u4ea4\u6587\u4ef6\u3002<\/p>\n<pre class=\"post-pre\"><code>TEST!!\r\n\u30c6\u30b9\u30c8\uff01\uff01\r\nhogehoge!!\r\n\uff21\u3055\u3093\u306e\u8ffd\u52a0\u3002\r\n\u30b3\u30f3\u30d5\u30ea\u30af\u30c8\u8d77\u304d\u308b\u304b\u306a\uff1f\r\n\uff22\u3055\u3093\u306e\u8ffd\u52a0\u3002\r\n\u30b3\u30f3\u30d5\u30ea\u30af\u30c8\u304c\u8d77\u304d\u305f\u3089\u3069\u3046\u3057\u3088\u3046...\r\n<\/code><\/pre>\n<p>\u67e5\u770b\u65e5\u5fd7\uff0c\u627e\u4e0d\u5230\u5206\u652f\u4e0a\u7684\u63d0\u4ea4\u8bb0\u5f55\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git log -2\r\ncommit c5889725472ceba93e7ec3cffdd66e608b014fac\r\nMerge: 1726af7 42e9c92\r\nAuthor: takezoh &lt;takezoh@hogehoge.co.jp&gt;\r\nDate:   Tue Apr 4 12:55:34 2017 +0900\r\n\r\n    \u30b3\u30f3\u30d5\u30ea\u30af\u30c8\u3092\u89e3\u6d88\r\n\r\ncommit 42e9c926f974ce74268c96c9b74a185a7199a2f2\r\nAuthor: hogehoge &lt;takezoh@hogehoge.co.jp&gt;\r\nDate:   Tue Apr 4 12:26:00 2017 +0900\r\n\r\n    \uff22\u3055\u3093\u306e\u5909\u66f4\u3092\u30b3\u30df\u30c3\u30c8\r\n<\/code><\/pre>\n<h3>27. \u5c1d\u8bd5\u5c06\u66f4\u6539\u5408\u5e76\u5230\u4e3b\u5206\u652f\u4e2d\uff0c\u6765\u8fdb\u884c\u6d4b\u8bd5\u3002<\/h3>\n<p>\u7531\u4e8e\u5206\u652f\u7aef\u7684\u63d0\u4ea4\u5df2\u7ecf\u5b8c\u6210\uff0c\u6240\u4ee5\u6211\u5c1d\u8bd5\u5c06\u8fd9\u4e9b\u66f4\u6539\u5408\u5e76\u5230\u4e3b\u5206\u652f\u4e2d\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git merge local_branch_1\r\nUpdating c588972..beb3317\r\nFast-forward\r\n test.txt | 1 +\r\n 1 file changed, 1 insertion(+)\r\n<\/code><\/pre>\n<p>\u6211\u4f1a\u786e\u8ba4test.txt\u5df2\u7ecf\u66f4\u6539\u5e76\u53cd\u6620\u51fa\u6765\u3002<br \/>\n\u8fd9\u6837\u5c31\u5b8c\u6210\u4e86\u5411\u4e3b\u5206\u652f(master)\u7684\u5408\u5e76\u3002<\/p>\n<p>\u6211\u4e5f\u4f1a\u67e5\u770b\u4e00\u4e0b\u65e5\u5fd7\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git log -2\r\ncommit beb3317e6ac54d1c80bdec218055cd5460e2dc96\r\nAuthor: takezoh &lt;takezoh@hogehoge.co.jp&gt;\r\nDate:   Thu Apr 6 12:37:33 2017 +0900\r\n\r\n    \u30d6\u30e9\u30f3\u30c1\u5074\u306b\u30b3\u30df\u30c3\u30c8\r\n\r\ncommit c5889725472ceba93e7ec3cffdd66e608b014fac\r\nMerge: 1726af7 42e9c92\r\nAuthor: takezoh &lt;takezoh@hogehoge.co.jp&gt;\r\nDate:   Tue Apr 4 12:55:34 2017 +0900\r\n\r\n    \u30b3\u30f3\u30d5\u30ea\u30af\u30c8\u3092\u89e3\u6d88\r\n<\/code><\/pre>\n<h3>\u5c1d\u8bd5\u5220\u9664\u5206\u652f\u3002<\/h3>\n<p>\u6211\u4f1a\u5c1d\u8bd5\u5220\u9664\u4e0d\u9700\u8981\u7684\u5206\u652f\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git branch -d local_branch_1\r\nDeleted branch local_branch_1 (was beb3317).\r\n\r\n$ git branch\r\n* master\r\n<\/code><\/pre>\n<h1>\u4e4c\u9f9fGit<\/h1>\n<h2>\u5b89\u88c5<\/h2>\n<p>\u6211\u5c06\u53c2\u8003\u4e0b\u9762\u7684\u9875\u9762\u8fdb\u884c\u5b89\u88c5\u3002\u8fd9\u7bc7\u6587\u7ae0\u4e5f\u975e\u5e38\u6709\u53c2\u8003\u4ef7\u503c\uff0c\u8bf7\u4e00\u5b9a\u8981\u9605\u8bfb\u3002<\/p>\n<ul class=\"post-ul\">TortoiseGit \u306e\u57fa\u790e\u52c9\u5f37 \u301cTortoiseGit \u306b\u3088\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u3092\u4f7f\u3046\u301c<\/ul>\n<h3>1. \u4e0b\u8f7d\u8fc7\u6765<\/h3>\n<p>\u4e4c\u9f9fGit<\/p>\n<p>\u76ee\u524d\u7684\u6700\u65b0\u7248\u672c\u662f2.4.0.2\uff082017\/4\/7\uff09\u3002<\/p>\n<p>\u4e0b\u8f7d&#8221; TortoiseGit-2.4.0.2-64bit.msi&#8221;\u3002<br \/>\n\u540c\u65f6\u4e5f\u4e0b\u8f7d &#8220;\u65e5\u672c\u8bed\u5316\u5305(TortoiseGit-LanguagePack-2.4.0.0-64bit-ja.msi)&#8221;\u3002<\/p>\n<p>\u7531\u4e8eWindows\u5df2\u7ecf\u5b89\u88c5\u4e86Git\uff0c\u56e0\u6b64\u5f00\u59cb\u5b89\u88c5TortoiseGit\u3002<\/p>\n<h3>2. \u5b89\u88c5 TortoiseGit<\/h3>\n<p>\u8bf7\u6267\u884c\u5b89\u88c5\u7a0b\u5e8f\u3002<br \/>\n\u57fa\u672c\u4e0a\uff0c\u53ea\u9700\u70b9\u51fb[\u4e0b\u4e00\u6b65]\u5373\u53ef\u987a\u5229\u8fdb\u884c\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/258-0.png\" alt=\"tortoisegit_000.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/259-0.png\" alt=\"tortoisegit_001.png\" \/><\/div>\n<p>\u6211\u4f1a\u9009\u62e9\u9876\u90e8\u7684SSH\u5ba2\u6237\u7aef\u9009\u9879\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/261-0.png\" alt=\"tortoisegit_002.png\" \/><\/div>\n<p>\u5982\u679c\u81ea\u5b9a\u4e49\u8bbe\u7f6e\u6ca1\u6709\u53d8\u5316\uff0c\u6211\u4eec\u5c31\u6309\u7167\u539f\u6837\u8fdb\u884c\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/263-0.png\" alt=\"tortoisegit_003.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/264-0.png\" alt=\"tortoisegit_004.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/265-0.png\" alt=\"tortoisegit_005.png\" \/><\/div>\n<p>\u5b89\u88c5\u5df2\u5b8c\u6210\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/267-0.png\" alt=\"tortoisegit_006.png\" \/><\/div>\n<p>\u6211\u4f1a\u5c1d\u8bd5\u542f\u52a8\u3002<br \/>\n\u56e0\u4e3a\u6211\u6ca1\u6709\u5b89\u88c5\u65e5\u8bed\u8bed\u8a00\u5305\uff0c\u6240\u4ee5\u8fd9\u4e2a\u90e8\u5206\u5c06\u4fdd\u6301\u4e3a\u82f1\u6587\u7684\u72b6\u6001\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/269-0.png\" alt=\"tortoisegit_007.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/270-0.png\" alt=\"tortoisegit_008.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/271-0.png\" alt=\"tortoisegit_009.png\" \/><\/div>\n<p>\u7531\u4e8e\u7528\u6237\u4fe1\u606f\u5df2\u5728Git Bash\u4e2d\u8bbe\u7f6e\u5e76\u663e\u793a\u51fa\u6765\uff0c\u60a8\u53ef\u4ee5\u7ee7\u7eed\u8fdb\u884c\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/273-0.png\" alt=\"tortoisegit_010.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/274-0.png\" alt=\"tortoisegit_011.png\" \/><\/div>\n<p>\u8fd9\u6837\u4e00\u6765\uff0c\u521d\u59cb\u8bbe\u7f6e\u4e5f\u5b8c\u6210\u4e86\u3002<\/p>\n<h3>\u5b89\u88c5\u65e5\u672c\u8bed\u5316\u5305\u3002<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/277-0.png\" alt=\"langpack_000.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/278-0.png\" alt=\"langpack_001.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/279-0.png\" alt=\"langpack_002.png\" \/><\/div>\n<p>\u5b89\u88c5\u5df2\u5b8c\u6210\u3002<\/p>\n<p>\u8bf7\u5207\u6362\u5230\u65e5\u8bed\u3002<br \/>\n\u8bf7\u53f3\u952e\u70b9\u51fbTortoiseGit\uff0c\u9009\u62e9\u8bbe\u7f6e\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/282-0.png\" alt=\"langpack_003.png\" \/><\/div>\n<p>\u8bf7\u5c06General\u7684\u8bed\u8a00\u5207\u6362\u4e3a\u65e5\u8bed\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/284-0.png\" alt=\"langpack_004.png\" \/><\/div>\n<p>\u5207\u63db\u81f3\u65e5\u8a9e\u5df2\u5b8c\u6210\u3002<\/p>\n<h2>\u6211\u5c1d\u8bd5\u4f7f\u7528TortoiseGit\u3002<\/h2>\n<h3>\u786e\u8ba4\u4e00\u4e0b\u5728Git Bash\u8fdb\u884c\u7684\u5de5\u4f5c\u73af\u5883\u3002<\/h3>\n<p>\u8bf7\u786e\u8ba4\u662f\u5426\u663e\u793a\u4e86\u7eff\u8272\u7684\u52fe\u9009\u6807\u5fd7\u56fe\u6807\u3002<br \/>\n\u203b\u56fe\u6807\u663e\u793a\u53ef\u80fd\u9700\u8981\u4e00\u4e9b\u65f6\u95f4\u3002<br \/>\n\u203b\u5982\u679c\u56fe\u6807\u6ca1\u6709\u663e\u793a\uff0c\u53ef\u80fd\u662f\u8d85\u8fc7\u4e86\u53e0\u52a0\u56fe\u6807\u7684\u6700\u5927\u6570\u91cf\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/289-0.png\" alt=\"tortoisegit_012.png\" \/><\/div>\n<h3>\u8bd5\u7740\u62c9\u4e00\u4e0b<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/291-0.png\" alt=\"tortoisegit_013.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/292-0.png\" alt=\"tortoisegit_014.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/293-0.png\" alt=\"tortoisegit_015.png\" \/><\/div>\n<h3>\u786e\u8ba4\u65e5\u5fd7<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/295-0.png\" alt=\"tortoisegit_016.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/296-0.png\" alt=\"tortoisegit_017.png\" \/><\/div>\n<h3>\u5c1d\u8bd5\u63d0\u4ea4\u66f4\u6539\u3002<\/h3>\n<p>\u6211\u4f1a\u5c1d\u8bd5\u4fee\u6539test.txt\u6587\u4ef6\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/299-0.png\" alt=\"tortoisegit_018.png\" \/><\/div>\n<h3>5. \u68c0\u67e5\u5dee\u5206<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/301-0.png\" alt=\"tortoisegit_019.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/302-0.png\" alt=\"tortoisegit_020.png\" \/><\/div>\n<h3>\u5c1d\u8bd5\u63d0\u4ea4<\/h3>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/304-0.png\" alt=\"tortoisegit_021.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/305-0.png\" alt=\"tortoisegit_022.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/306-0.png\" alt=\"tortoisegit_023.png\" \/><\/div>\n<h3>7. \u6211\u4eec\u8bd5\u4e00\u8bd5\u63a8\u9001\u3002 sh\u00ec .)<\/h3>\n<p>\u4e4b\u524d\u7684\u63d0\u4ea4\u662f\u5bf9\u5de5\u4f5c\u4ed3\u5e93\u7684\u63d0\u4ea4\u3002<br \/>\n\u5c1a\u672a\u5728\u5171\u4eab\u4ed3\u5e93\u4e2d\u53cd\u6620\u3002<br \/>\n\u5373\u4f7f\u5728B\u5148\u751f\u7684\u73af\u5883\u4e2d\u8fdb\u884c\u4e86pull\u5e76\u68c0\u67e5\u65e5\u5fd7\uff0c\u4e4b\u524d\u7684\u66f4\u6539\u4e5f\u6ca1\u6709\u53cd\u6620\u51fa\u6765\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/309-0.png\" alt=\"tortoisegit_024.png\" \/><\/div>\n<p>\u56e0\u6b64\uff0c\u6211\u4f1a\u5c06\u4e4b\u524d\u7684\u63d0\u4ea4\u63a8\u9001\u5230\u5171\u4eab\u5b58\u50a8\u5e93\u4e2d\u3002<br \/>\n* \u6b64\u65f6\u5de5\u4f5c\u5b58\u50a8\u5e93\u6ca1\u6709\u66f4\u6539\uff0c\u6240\u4ee5\u5168\u90e8\u90fd\u662f\u7eff\u8272\u6807\u8bb0\u3002<br \/>\n* \u600e\u6837\u624d\u80fd\u786e\u8ba4\u4e0e\u5171\u4eab\u5b58\u50a8\u5e93\u7684\u5dee\u5f02\u5462&#8230;<br \/>\n* \u6211\u597d\u50cf\u5fd8\u8bb0\u4e86\u662f\u5426\u5df2\u7ecf\u63a8\u9001\u5230\u5171\u4eab\u5b58\u50a8\u5e93&#8230;<br \/>\n* \u6709\u5f88\u591a\u4eba\u7528\u5404\u79cd\u65b9\u6cd5\u6765\u5904\u7406\u5fd8\u8bb0\u63a8\u9001\u7684\u95ee\u9898&#8230;<\/p>\n<p>\u5728Bash\u4e2d\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u65b9\u5f0f\u6765\u786e\u8ba4\u3002<br \/>\n\u5982\u679c\u5b58\u5728\u672a\u63a8\u9001\u7684\u63d0\u4ea4\uff0c\u5219\u4f1a\u5728\u65e5\u5fd7\u4e2d\u663e\u793a\u3002<\/p>\n<pre class=\"post-pre\"><code>$ git log origin\/master..master\r\ncommit 317239762c05044fa189cde1548374b10459e9bd\r\nAuthor: takezoh &lt;takezoh@hogehoge.co.jp&gt;\r\nDate:   Wed Apr 12 12:42:07 2017 +0900\r\n\r\n    TortoiseGit\u3067\u30b3\u30df\u30c3\u30c8\r\n\r\ncommit beb3317e6ac54d1c80bdec218055cd5460e2dc96\r\nAuthor: takezoh &lt;takezoh@hogehoge.co.jp&gt;\r\nDate:   Thu Apr 6 12:37:33 2017 +0900\r\n\r\n    \u30d6\u30e9\u30f3\u30c1\u5074\u306b\u30b3\u30df\u30c3\u30c8\r\n<\/code><\/pre>\n<p>\u5728TortoiseGit\u4e2d\uff0c\u5982\u4f55\u786e\u8ba4\u662f\u5426\u5fd8\u8bb0\u8fdb\u884cpush\uff1f<br \/>\n\u5728TortoiseGit\u4e2d\uff0c\u5982\u4f55\u67e5\u770b\u8fdc\u7a0b\u65e5\u5fd7\uff1f<\/p>\n<p>\u5148\u8bd5\u8bd5\u63a8\u9001\u5427\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/315-0.png\" alt=\"tortoisegit_025.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/316-0.png\" alt=\"tortoisegit_026.png\" \/><\/div>\n<p>\u63a8\u9001\u5df2\u5b8c\u6210\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/318-0.png\" alt=\"tortoisegit_027.png\" \/><\/div>\n<h1>GitHub (\u6e90\u4e8e\u7b80\u4f53\u4e2d\u6587\u7684\u7f51\u7edc\u793e\u4ea4\u5e73\u53f0).<\/h1>\n<p>\u7ec8\u4e8e\u5f00\u59cb\u5c1d\u8bd5\u4f7f\u7528GitHub\u4e86\u3002<\/p>\n<h2>\u5728 GitHub \u4e0a\u6ce8\u518c\u8d26\u53f7<\/h2>\n<p>\u9996\u5148\uff0c\u60a8\u9700\u8981\u6ce8\u518c\u4e00\u4e2aGitHub\u8d26\u53f7\u3002<\/p>\n<p>GitHub &#8211; \u4ee3\u7801\u6258\u7ba1\u5e73\u53f0<\/p>\n<p>\u8bf7\u63d0\u4f9b\u60a8\u7684\u7528\u6237\u540d\u3001\u90ae\u7bb1\u5730\u5740\u548c\u5bc6\u7801\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/325-0.png\" alt=\"github_000.png\" \/><\/div>\n<p>\u9009\u62e9\u8ba1\u5212\u3002<br \/>\n\u9009\u62e9\u514d\u8d39\u65b9\u6848\u8fdb\u884c\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/327-0.png\" alt=\"github_001.png\" \/><\/div>\n<p>\u9009\u62e9\u9002\u5408\u81ea\u5df1\u7ecf\u9a8c\u7684\u5185\u5bb9\u5e76\u63d0\u4ea4\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/329-0.png\" alt=\"github_002.png\" \/><\/div>\n<p>\u6211\u5df2\u6210\u529f\u5b8c\u6210\u6ce8\u518c\u3002<br \/>\n\u6211\u4f1a\u6536\u5230\u4e00\u5c01\u7535\u5b50\u90ae\u4ef6\uff0c\u9700\u8981\u786e\u8ba4\u6211\u7684\u7535\u5b50\u90ae\u4ef6\u5730\u5740\uff0c\u6240\u4ee5\u6211\u4f1a\u8fdb\u884c\u786e\u8ba4\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/331-0.png\" alt=\"github_003.png\" \/><\/div>\n<p>\u6211\u7acb\u5373\u521b\u5efa\u4e00\u4e2a\u4ed3\u5e93\u6765\u8bd5\u8bd5\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/333-0.png\" alt=\"github_004.png\" \/><\/div>\n<p>\u4ed3\u5e93\u5df2\u7ecf\u987a\u5229\u521b\u5efa\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/335-0.png\" alt=\"github_005.png\" \/><\/div>\n<p>\u63a5\u4e0b\u6765\uff0c\u60a8\u5c06\u53ef\u4ee5\u6309\u7167\u4ee5\u5f80\u7684\u6b65\u9aa4\u5728GitHub\u5171\u4eab\u4ed3\u5e93\u4e0a\u8fdb\u884c\u64cd\u4f5c\u3002<\/p>\n<h2>\u5728GitHub\u4e0a\u521b\u5efa\u7684\u5171\u4eab\u5b58\u50a8\u5e93\u4e2d\u8fdb\u884c\u5de5\u4f5c\u3002<\/h2>\n<p>\u9996\u5148\uff0c\u5c06\u521a\u624d\u521b\u5efa\u7684\u5171\u4eab\u7248\u672c\u5e93\u514b\u9686\u4e0b\u6765\u3002<br \/>\n\u5c1d\u8bd5\u4f7f\u7528TortoiseGit\u8fdb\u884c\u64cd\u4f5c\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/339-0.png\" alt=\"github_006.png\" \/><\/div>\n<p>\u8bf7\u5728URL\u4e2d\u8f93\u5165\u521a\u521a\u521b\u5efa\u7684\u5171\u4eab\u5b58\u50a8\u5e93\u7684URL\u3002<br \/>\n\u8bf7\u6307\u5b9a\u4e00\u4e2a\u672c\u5730\u8def\u5f84\u4f5c\u4e3a\u76ee\u5f55\u3002<\/p>\n<p>\u4ece\u73b0\u5728\u8d77\uff0c\u4f60\u53ef\u4ee5\u5c06\u5185\u5bb9\u63d0\u4ea4\u5230GitHub\u4e0a\u5171\u4eab\u7684\u5b58\u50a8\u5e93\u4e2d\u3002<\/p>\n<h1>GitHub\u684c\u9762\u7248<\/h1>\n<p>\u6211\u4e5f\u5c1d\u8bd5\u5b89\u88c5GitHub Desktop\u3002<\/p>\n<h2>\u5b89\u88c5GitHub Desktop<\/h2>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/345-0.png\" alt=\"githubdesktop_000.png\" \/><\/div>\n<h2>\u6b63\u5728\u5b89\u88c5\u4e2d&#8230;<\/h2>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/347-0.png\" alt=\"githubdesktop_001.png\" \/><\/div>\n<h2>\u4f7f\u7528GitHub\u8d26\u6237\u767b\u5f55<\/h2>\n<p>\u8f93\u5165GitHub\u8d26\u53f7\u5e76\u767b\u5f55\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/350-0.png\" alt=\"githubdesktop_002.png\" \/><\/div>\n<h2>\u8bbe\u5b9a\u914d\u7f6e<\/h2>\n<p>\u8bf7\u586b\u5199\u4ee5\u524d\u8bbe\u7f6e\u8fc7\u7684\u7528\u6237\u540d\u548c\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/353-0.png\" alt=\"githubdesktop_003.png\" \/><\/div>\n<h2>\u5b89\u88c5\u5b8c\u6210<\/h2>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/355-0.png\" alt=\"githubdesktop_004.png\" \/><\/div>\n<h2>\u6dfb\u52a0\u5b58\u50a8\u5e93<\/h2>\n<p>\u8ba9\u6211\u4eec\u5728\u8fd9\u91cc\u6dfb\u52a0\u6211\u4eec\u8fc4\u4eca\u4e3a\u6b62\u521b\u5efa\u7684\u5b58\u50a8\u5e93\u3002<br \/>\n\u5b83\u5c06\u4f1a\u663e\u793a\u5728\u684c\u9762\u4e0a\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/358-0.png\" alt=\"githubdesktop_005.png\" \/><\/div>\n<hr \/>\n<p>\u9996\u5148\u5c1d\u8bd5\u4f7f\u7528Git\uff0c\u7136\u540e\u8bd5\u8bd5TortoiseGit\uff0c\u6700\u540e\u6210\u529f\u8bbf\u95ee\u5230GitHub\u3002<br \/>\n\u63a5\u4e0b\u6765\u4f1a\u7ee7\u7eed\u5c1d\u8bd5\u66f4\u591a\u4e0d\u540c\u7684\u64cd\u4f5c\u5e76\u8fdb\u884c\u968f\u65f6\u66f4\u65b0\u3002<\/p>\n<h1>\u8bf7\u53c2\u8003<\/h1>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Git \u306e\u57fa\u790e\u52c9\u5f37 \u301cGit \u306b\u3088\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u3092\u4f7f\u3046\u301c<\/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\">\u3053\u308f\u304f\u306a\u3044 Git<\/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\">GitHub \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\">Git\u30b3\u30de\u30f3\u30c9\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\">TortoiseGit \u306e\u57fa\u790e\u52c9\u5f37 \u301cTortoiseGit \u306b\u3088\u308b\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u3092\u4f7f\u3046\u301c<\/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\">TortoiseGit\u306e\u4f7f\u3044\u65b9\u3060\u304c\u30ed\u30fc\u30ab\u30ebPC\u3067\u5171\u6709\u30ea\u30dd\u30b8\u30c8\u30ea\u3001\u4f5c\u696d\u30ea\u30dd\u30b8\u30c8\u30ea\u3067\u306e\u4f7f\u3044\u65b9\u304c\u66f8\u304b\u308c\u3066\u3044\u308b\u3002<\/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\">\u30ac\u30c1\u30675\u5206\u3067\u5206\u304b\u308b\u5206\u6563\u578b\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406\u30b7\u30b9\u30c6\u30e0Git<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u5206\u6563\u30d0\u30fc\u30b8\u30e7\u30f3\u7ba1\u7406Git\/Mercurial\/Bazaar\u5fb9\u5e95\u6bd4\u8f03<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148 \u4ee5\u524d\u5728\u5de5\u4f5c\u4e2d\u4e00\u76f4\u4f7f\u7528Subversion\uff0c\u4f46\u662f\u672a\u6765\u53ef\u80fd\u4f1a\u5f00\u59cb\u4f7f\u7528Git\uff0c\u6240\u4ee5\u6211\u6253\u7b97\u5148\u5f00\u59cb\u5b66\u4e60\u3002 \u5728\u516c\u53f8\u7684 [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-37609","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>\u6211\u5f00\u59cb\u4f7f\u7528Git\u4e86\uff01 - 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\/\u6211\u5f00\u59cb\u4f7f\u7528git\u4e86\uff01\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u6211\u5f00\u59cb\u4f7f\u7528Git\u4e86\uff01\" \/>\n<meta property=\"og:description\" content=\"\u9996\u5148 \u4ee5\u524d\u5728\u5de5\u4f5c\u4e2d\u4e00\u76f4\u4f7f\u7528Subversion\uff0c\u4f46\u662f\u672a\u6765\u53ef\u80fd\u4f1a\u5f00\u59cb\u4f7f\u7528Git\uff0c\u6240\u4ee5\u6211\u6253\u7b97\u5148\u5f00\u59cb\u5b66\u4e60\u3002 \u5728\u516c\u53f8\u7684 [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u6211\u5f00\u59cb\u4f7f\u7528git\u4e86\uff01\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-08-01T10:29:35+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-28T17:10:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/43-0.png\" \/>\n<meta name=\"author\" content=\"\u5b87, \u534e\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u5b87, \u534e\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 \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\/%e6%88%91%e5%bc%80%e5%a7%8b%e4%bd%bf%e7%94%a8git%e4%ba%86%ef%bc%81\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%bc%80%e5%a7%8b%e4%bd%bf%e7%94%a8git%e4%ba%86%ef%bc%81\/\",\"name\":\"\u6211\u5f00\u59cb\u4f7f\u7528Git\u4e86\uff01 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-08-01T10:29:35+00:00\",\"dateModified\":\"2024-04-28T17:10:01+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%bc%80%e5%a7%8b%e4%bd%bf%e7%94%a8git%e4%ba%86%ef%bc%81\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%bc%80%e5%a7%8b%e4%bd%bf%e7%94%a8git%e4%ba%86%ef%bc%81\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%bc%80%e5%a7%8b%e4%bd%bf%e7%94%a8git%e4%ba%86%ef%bc%81\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u6211\u5f00\u59cb\u4f7f\u7528Git\u4e86\uff01\"}]},{\"@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\/513018e4e121d3add1b7c5de8be21458\",\"name\":\"\u5b87, \u534e\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g\",\"caption\":\"\u5b87, \u534e\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yuhua\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%bc%80%e5%a7%8b%e4%bd%bf%e7%94%a8git%e4%ba%86%ef%bc%81\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u6211\u5f00\u59cb\u4f7f\u7528Git\u4e86\uff01 - 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\/\u6211\u5f00\u59cb\u4f7f\u7528git\u4e86\uff01\/","og_locale":"zh_CN","og_type":"article","og_title":"\u6211\u5f00\u59cb\u4f7f\u7528Git\u4e86\uff01","og_description":"\u9996\u5148 \u4ee5\u524d\u5728\u5de5\u4f5c\u4e2d\u4e00\u76f4\u4f7f\u7528Subversion\uff0c\u4f46\u662f\u672a\u6765\u53ef\u80fd\u4f1a\u5f00\u59cb\u4f7f\u7528Git\uff0c\u6240\u4ee5\u6211\u6253\u7b97\u5148\u5f00\u59cb\u5b66\u4e60\u3002 \u5728\u516c\u53f8\u7684 [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u6211\u5f00\u59cb\u4f7f\u7528git\u4e86\uff01\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-08-01T10:29:35+00:00","article_modified_time":"2024-04-28T17:10:01+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d2f8237434c4406c5847a\/43-0.png"}],"author":"\u5b87, \u534e","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u5b87, \u534e","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"11 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%bc%80%e5%a7%8b%e4%bd%bf%e7%94%a8git%e4%ba%86%ef%bc%81\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%bc%80%e5%a7%8b%e4%bd%bf%e7%94%a8git%e4%ba%86%ef%bc%81\/","name":"\u6211\u5f00\u59cb\u4f7f\u7528Git\u4e86\uff01 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-08-01T10:29:35+00:00","dateModified":"2024-04-28T17:10:01+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/513018e4e121d3add1b7c5de8be21458"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%bc%80%e5%a7%8b%e4%bd%bf%e7%94%a8git%e4%ba%86%ef%bc%81\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%bc%80%e5%a7%8b%e4%bd%bf%e7%94%a8git%e4%ba%86%ef%bc%81\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%bc%80%e5%a7%8b%e4%bd%bf%e7%94%a8git%e4%ba%86%ef%bc%81\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u6211\u5f00\u59cb\u4f7f\u7528Git\u4e86\uff01"}]},{"@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\/513018e4e121d3add1b7c5de8be21458","name":"\u5b87, \u534e","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/63cd45cbc05a35fc4ff7637a163c83c4962ef58d27472726c3a3e0c9c5194f0f?s=96&d=mm&r=g","caption":"\u5b87, \u534e"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yuhua\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e6%88%91%e5%bc%80%e5%a7%8b%e4%bd%bf%e7%94%a8git%e4%ba%86%ef%bc%81\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/37609","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\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=37609"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/37609\/revisions"}],"predecessor-version":[{"id":70660,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/37609\/revisions\/70660"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=37609"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=37609"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=37609"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}