{"id":8661,"date":"2022-11-23T12:39:33","date_gmt":"2022-11-23T04:39:33","guid":{"rendered":"http:\/\/123.57.164.21\/?p=8661"},"modified":"2022-11-23T12:39:33","modified_gmt":"2022-11-23T04:39:33","slug":"git%e7%9a%84%e6%a0%b8%e5%bf%83%e6%a6%82%e5%bf%b5","status":"publish","type":"post","link":"https:\/\/92it.top\/?p=8661","title":{"rendered":"Git\u7684\u6838\u5fc3\u6982\u5ff5"},"content":{"rendered":"\n<p>\u672c\u6587\u4e0d\u662fGit\u4f7f\u7528\u6559\u5b66\u7bc7\uff0c\u800c\u662f\u504f\u5411\u7406\u8bba\u65b9\u9762\uff0c\u65e8\u5728\u66f4\u52a0\u6df1\u523b\u7684\u7406\u89e3Git\uff0c\u8fd9\u6837\u624d\u80fd\u66f4\u597d\u7684\u4f7f\u7528\u5b83\uff0c\u8ba9\u5de5\u5177\u6210\u4e3a\u6211\u4eec\u5f97\u529b\u7684\u52a9\u624b\u3002<\/p>\n\n\n\n<p><strong>\u7248\u672c\u63a7\u5236\u7cfb\u7edf<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p><strong>\u672c\u5730\u7248\u672c\u63a7\u5236<\/strong><\/p>\n\n\n\n<p>Git \u662f\u76ee\u524d\u4e16\u754c\u4e0a\u6700\u4f18\u79c0\u7684\u5206\u5e03\u5f0f\u7248\u672c\u63a7\u5236\u7cfb\u7edf\u3002\u7248\u672c\u63a7\u5236\u7cfb\u7edf\u662f\u80fd\u591f\u968f\u7740\u65f6\u95f4\u7684\u63a8\u8fdb\u8bb0\u5f55\u4e00\u7cfb\u5217\u6587\u4ef6\u7684\u53d8\u5316\u4ee5\u4fbf\u4e8e\u4f60\u4ee5\u540e\u60f3\u8981\u7684\u9000\u56de\u5230\u67d0\u4e2a\u7248\u672c\u7684\u7cfb\u7edf\u3002\u7248\u672c\u63a7\u5236\u7cfb\u7edf\u5206\u4e3a\u4e09\u5927\u7c7b\uff1a\u672c\u5730\u7248\u672c\u63a7\u5236\u7cfb\u7edf\uff0c\u96c6\u4e2d\u5f0f\u7248\u672c\u63a7\u5236\u7cfb\u7edf\u548c\u5206\u5e03\u5f0f\u7248\u672c\u63a7\u5236\u7cfb\u7edf<\/p>\n\n\n\n<p>\u672c\u5730\u7248\u672c\u63a7\u5236\uff08Local Version Control Systems\uff09\u662f\u5c06\u6587\u4ef6\u7684\u5404\u4e2a\u7248\u672c\u4ee5\u4e00\u5b9a\u7684\u6570\u636e\u683c\u5f0f\u5b58\u50a8\u5728\u672c\u5730\u7684\u78c1\u76d8\uff08\u6709\u7684VCS \u662f\u4fdd\u5b58\u6587\u4ef6\u7684\u53d8\u5316\u8865\u4e01\uff0c\u5373\u5728\u6587\u4ef6\u5185\u5bb9\u53d8\u5316\u65f6\u8ba1\u7b97\u51fa\u5dee\u91cf\u4fdd\u5b58\u8d77\u6765\uff09\uff0c\u8fd9\u79cd\u65b9\u5f0f\u5728\u4e00\u5b9a\u7a0b\u5ea6\u4e0a\u89e3\u51b3\u4e86\u624b\u52a8\u590d\u5236\u7c98\u8d34\u7684\u95ee\u9898\uff0c\u4f46\u65e0\u6cd5\u89e3\u51b3\u591a\u4eba\u534f\u4f5c\u7684\u95ee\u9898\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-253-1024x719.png\" alt=\"\" class=\"wp-image-8662\" width=\"383\" height=\"268\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-253-1024x719.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-253-300x211.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-253-768x539.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-253-830x583.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-253-230x162.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-253-350x246.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-253-480x337.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-253.png 1324w\" sizes=\"(max-width: 383px) 100vw, 383px\" \/><\/figure><\/div>\n\n\n\n<p><strong>\u96c6\u4e2d\u5f0f\u7248\u672c\u63a7\u5236<\/strong><\/p>\n\n\n\n<p>\u96c6\u4e2d\u5f0f\u7248\u672c\u63a7\u5236\uff08Centralized Version Control Systems\uff09\u76f8\u6bd4\u672c\u5730\u7248\u672c\u63a7\u5236\u6ca1\u6709\u4ec0\u4e48\u672c\u8d28\u7684\u53d8\u5316\uff0c\u53ea\u662f\u591a\u4e86\u4e2a\u4e00\u4e2a\u4e2d\u592e\u670d\u52a1\u5668\uff0c\u5404\u4e2a\u7248\u672c\u7684\u6570\u636e\u5e93\u5b58\u50a8\u5728\u4e2d\u592e\u670d\u52a1\u5668\uff0c\u7ba1\u7406\u5458\u53ef\u4ee5\u63a7\u5236\u5f00\u53d1\u4eba\u5458\u7684\u6743\u9650\uff0c\u800c\u5f00\u53d1\u4eba\u5458\u4e5f\u53ef\u4ee5\u4ece\u4e2d\u592e\u670d\u52a1\u5668\u62c9\u53d6\u6570\u636e\u3002\u96c6\u4e2d\u5f0f\u7248\u672c\u63a7\u5236\u867d\u7136\u89e3\u51b3\u4e86\u56e2\u961f\u534f\u4f5c\u95ee\u9898\uff0c\u4f46\u7f3a\u70b9\u4e5f\u5f88\u660e\u663e\uff1a\u6240\u6709\u6570\u636e\u5b58\u50a8\u5728\u4e2d\u592e\u670d\u52a1\u5668\uff0c\u670d\u52a1\u5668\u4e00\u65e6\u5b95\u673a\u6216\u8005\u78c1\u76d8\u635f\u574f\uff0c\u4f1a\u9020\u6210\u4e0d\u53ef\u4f30\u91cf\u7684\u635f\u5931\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-254-1024x951.png\" alt=\"\" class=\"wp-image-8664\" width=\"417\" height=\"387\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-254-1024x951.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-254-300x279.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-254-768x713.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-254-830x771.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-254-230x214.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-254-350x325.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-254-480x446.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-254.png 1454w\" sizes=\"(max-width: 417px) 100vw, 417px\" \/><\/figure><\/div>\n\n\n\n<p><strong>\u5206\u5e03\u5f0f\u7248\u672c\u63a7\u5236<\/strong><\/p>\n\n\n\n<p>\u5206\u5e03\u5f0f\u7248\u672c\u63a7\u5236\uff08 Distributed Version Control System\uff09\u4e0e\u524d\u4e24\u8005\u5747\u4e0d\u540c\u3002\u9996\u5148\uff0c\u5728\u5206\u5e03\u5f0f\u7248\u672c\u63a7\u5236\u7cfb\u7edf\u4e2d\uff0c\u50cf Git\uff0cMercurial\uff0cBazaar \u4ee5\u53ca Darcs \u7b49\uff0c\u7cfb\u7edf\u4fdd\u5b58\u7684\u7684\u4e0d\u662f\u6587\u4ef6\u53d8\u5316\u7684\u5dee\u91cf\uff0c\u800c\u662f\u6587\u4ef6\u7684\u5feb\u7167\uff0c\u5373\u628a\u6587\u4ef6\u7684\u6574\u4f53\u590d\u5236\u4e0b\u6765\u4fdd\u5b58\uff0c\u800c\u4e0d\u5173\u5fc3\u5177\u4f53\u7684\u53d8\u5316\u5185\u5bb9\u3002\u5176\u6b21\uff0c\u6700\u91cd\u8981\u7684\u662f\u5206\u5e03\u5f0f\u7248\u672c\u63a7\u5236\u7cfb\u7edf\u662f\u5206\u5e03\u5f0f\u7684\uff0c\u5f53\u4f60\u4ece\u4e2d\u592e\u670d\u52a1\u5668\u62f7\u8d1d\u4e0b\u6765\u4ee3\u7801\u65f6\uff0c\u4f60\u62f7\u8d1d\u7684\u662f\u4e00\u4e2a\u5b8c\u6574\u7684\u7248\u672c\u5e93\uff0c\u5305\u62ec\u5386\u53f2\u7eaa\u5f55\uff0c\u63d0\u4ea4\u8bb0\u5f55\u7b49\uff0c\u8fd9\u6837\u5373\u4f7f\u67d0\u4e00\u53f0\u673a\u5668\u5b95\u673a\u4e5f\u80fd\u627e\u5230\u6587\u4ef6\u7684\u5b8c\u6574\u5907\u4efd\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-255-1024x958.png\" alt=\"\" class=\"wp-image-8665\" width=\"458\" height=\"427\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-255-1024x958.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-255-300x281.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-255-230x215.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-255-480x449.png 480w\" sizes=\"(max-width: 458px) 100vw, 458px\" \/><\/figure><\/div>\n\n\n\n<p><strong>Git\u57fa\u7840<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>Git\u662f\u4e00\u4e2a\u5206\u5e03\u5f0f\u7248\u672c\u63a7\u5236\u7cfb\u7edf\uff0c\u4fdd\u5b58\u7684\u662f\u6587\u4ef6\u7684\u5b8c\u6574\u5feb\u7167\uff0c\u800c\u4e0d\u662f\u5dee\u5f02\u53d8\u5316\u6216\u8005\u6587\u4ef6\u8865\u4e01\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-256-1024x570.png\" alt=\"\" class=\"wp-image-8668\" width=\"462\" height=\"257\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-256-1024x570.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-256-300x167.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-256-768x428.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-256-830x462.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-256-230x128.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-256-350x195.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-256-480x267.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-256.png 1074w\" sizes=\"(max-width: 462px) 100vw, 462px\" \/><figcaption>\u4fdd\u5b58\u6bcf\u4e00\u6b21\u53d8\u5316\u6587\u4ef6\u7684\u5b8c\u6574\u5185\u5bb9<\/figcaption><\/figure><\/div>\n\n\n\n<p>Git\u6bcf\u4e00\u6b21\u63d0\u4ea4\u90fd\u662f\u5bf9\u9879\u76ee\u6587\u4ef6\u7684\u4e00\u4e2a\u5b8c\u6574\u62f7\u8d1d\uff0c\u56e0\u6b64\u4f60\u53ef\u4ee5\u5b8c\u5168\u6062\u590d\u5230\u4ee5\u524d\u7684\u4efb\u4e00\u4e2a\u63d0\u4ea4\u800c\u4e0d\u4f1a\u53d1\u751f\u4efb\u4f55\u533a\u522b\u3002\u8fd9\u91cc\u6709\u4e00\u4e2a\u95ee\u9898\uff1a\u5982\u679c\u6211\u7684\u9879\u76ee\u5927\u5c0f\u662f10M\uff0c\u90a3Git\u5360\u7528\u7684\u7a7a\u95f4\u662f\u4e0d\u662f\u968f\u7740\u63d0\u4ea4\u6b21\u6570\u7684\u589e\u52a0\u7ebf\u6027\u589e\u52a0\u5462\uff1f\u6211\u63d0\u4ea4\uff08commit\uff09\u4e8610\u6b21\uff0c\u5360\u7528\u7a7a\u95f4\u662f\u4e0d\u662f100M\u5462\uff1f\u5f88\u663e\u7136\u4e0d\u662f\uff0cGit\u662f\u5f88\u667a\u80fd\u7684\uff0c\u5982\u679c\u6587\u4ef6\u6ca1\u6709\u53d8\u5316\uff0c\u5b83\u53ea\u4f1a\u4fdd\u5b58\u4e00\u4e2a\u6307\u5411\u4e0a\u4e00\u4e2a\u7248\u672c\u7684\u6587\u4ef6\u7684<code>\u6307\u9488<\/code>\uff0c\u5373\uff0c\u5bf9\u4e8e\u4e00\u4e2a\u7279\u5b9a\u7248\u672c\u7684\u6587\u4ef6\uff0cGit\u53ea\u4f1a\u4fdd\u5b58\u4e00\u4e2a\u526f\u672c\uff0c\u4f46\u53ef\u4ee5\u6709\u591a\u4e2a\u6307\u5411\u8be5\u6587\u4ef6\u7684<code>\u6307\u9488<\/code>\u3002<\/p>\n\n\n\n<p>\u53e6\u5916\u6ce8\u610f\uff0cGit\u6700\u9002\u5408\u4fdd\u5b58\u6587\u672c\u6587\u4ef6\uff0c\u4e8b\u5b9e\u4e0aGit\u5c31\u662f\u88ab\u8bbe\u8ba1\u51fa\u6765\u5c31\u662f\u4e3a\u4e86\u4fdd\u5b58\u6587\u672c\u6587\u4ef6\u7684\uff0c\u50cf\u5404\u79cd\u8bed\u8a00\u7684\u6e90\u4ee3\u7801\uff0c\u56e0\u4e3aGit\u53ef\u4ee5\u5bf9\u6587\u672c\u6587\u4ef6\u8fdb\u884c\u5f88\u597d\u7684\u538b\u7f29\u548c\u5dee\u5f02\u5206\u6790\uff08\u5927\u5bb6\u90fd\u89c1\u8bc6\u8fc7\u4e86\uff0cGit\u7684\u5dee\u5f02\u5206\u6790\u53ef\u4ee5\u7cbe\u786e\u5230\u4f60\u6dfb\u52a0\u6216\u8005\u5220\u9664\u4e86\u67d0\u4e2a\u5b57\u6bcd\uff09\u3002\u800c\u4e8c\u8fdb\u5236\u6587\u4ef6\u50cf\u89c6\u9891\uff0c\u56fe\u7247\u7b49\uff0cGit\u4e5f\u80fd\u7ba1\u7406\uff0c\u4f46\u4e0d\u80fd\u53d6\u5f97\u8f83\u597d\u7684\u6548\u679c\uff08\u538b\u7f29\u6bd4\u7387\u4f4e\uff0c\u4e0d\u80fd\u5dee\u5f02\u5206\u6790\uff09\u3002\u5b9e\u9a8c\u8bc1\u660e\uff0c\u4e00\u4e2a 500k \u7684\u6587\u672c\u6587\u4ef6\u7ecfGit\u538b\u7f29\u540e\u4ec5 50k \u5de6\u53f3\uff0c\u7a0d\u5fae\u6539\u53d8\u5185\u5bb9\u540e\u4e24\u6b21\u63d0\u4ea4\uff0c\u4f1a\u6709\u4e24\u4e2a 50k \u5de6\u53f3\u7684\u6587\u4ef6\uff0c\u6ca1\u9519\u7684\uff0c\u4fdd\u5b58\u7684\u662f\u5b8c\u6574\u5feb\u7167\u3002\u800c\u5bf9\u4e8e\u4e8c\u8fdb\u5236\u6587\u4ef6\uff0c\u50cf\u89c6\u9891\uff0c\u56fe\u7247\uff0c\u538b\u7f29\u7387\u975e\u5e38\u5c0f\uff0c Git \u5360\u7528\u7a7a\u95f4\u51e0\u4e4e\u968f\u7740\u63d0\u4ea4\u6b21\u6570\u7ebf\u6027\u589e\u957f\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-257-1024x567.png\" alt=\"\" class=\"wp-image-8670\" width=\"484\" height=\"268\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-257-1024x567.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-257-300x166.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-257-768x425.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-257-830x459.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-257-230x127.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-257-350x194.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-257-480x266.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-257.png 1066w\" sizes=\"(max-width: 484px) 100vw, 484px\" \/><figcaption>\u672a\u53d8\u5316\u7684\u6587\u4ef6\u53ea\u4fdd\u5b58\u4e0a\u4e00\u4e2a\u7248\u672c\u7684\u6307\u9488<\/figcaption><\/figure><\/div>\n\n\n\n<p>Git\u5de5\u7a0b\u6709\u4e09\u4e2a\u5de5\u4f5c\u533a\u57df\uff1a\u5de5\u4f5c\u76ee\u5f55\uff0c\u6682\u5b58\u533a\u57df\uff0c\u4ee5\u53ca\u672c\u5730\u4ed3\u5e93\u3002\u5de5\u4f5c\u76ee\u5f55\u662f\u4f60\u5f53\u524d\u8fdb\u884c\u5de5\u4f5c\u7684\u533a\u57df\uff1b\u6682\u5b58\u533a\u57df\u662f\u4f60\u8fd0\u884c<code>git add<\/code>\u547d\u4ee4\u540e\u6587\u4ef6\u4fdd\u5b58\u7684\u533a\u57df\uff0c\u4e5f\u662f\u4e0b\u6b21\u63d0\u4ea4\u5c06\u8981\u4fdd\u5b58\u7684\u6587\u4ef6\uff08\u6ce8\u610f\uff1aGit \u63d0\u4ea4\u5b9e\u9645\u8bfb\u53d6\u7684\u662f\u6682\u5b58\u533a\u57df\u7684\u5185\u5bb9\uff0c\u800c\u4e0e\u5de5\u4f5c\u533a\u57df\u7684\u6587\u4ef6\u65e0\u5173\uff0c\u8fd9\u4e5f\u662f\u5f53\u4f60\u4fee\u6539\u4e86\u6587\u4ef6\u4e4b\u540e\uff0c\u5982\u679c\u6ca1\u6709\u6dfb\u52a0<code>git add<\/code>\u5230\u6682\u5b58\u533a\u57df\uff0c\u5e76\u4e0d\u4f1a\u4fdd\u5b58\u5230\u7248\u672c\u5e93\u7684\u539f\u56e0\uff09\uff1b\u672c\u5730\u4ed3\u5e93\u5c31\u662f\u7248\u672c\u5e93\uff0c\u8bb0\u5f55\u4e86\u4f60\u5de5\u7a0b\u67d0\u6b21\u63d0\u4ea4\u7684\u5b8c\u6574\u72b6\u6001\u548c\u5185\u5bb9\uff0c\u8fd9\u610f\u5473\u7740\u4f60\u7684\u6570\u636e\u6c38\u8fdc\u4e0d\u4f1a\u4e22\u5931\u3002<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-258.png\" alt=\"\" class=\"wp-image-8671\" width=\"438\" height=\"162\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-258.png 970w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-258-300x111.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-258-768x283.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-258-830x306.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-258-230x85.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-258-350x129.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-258-480x177.png 480w\" sizes=\"(max-width: 438px) 100vw, 438px\" \/><\/figure><\/div>\n\n\n\n<p>\u76f8\u5e94\u7684\uff0c\u6587\u4ef6\u4e5f\u6709\u4e09\u79cd\u72b6\u6001\uff1a\u5df2\u63d0\u4ea4\uff08committed\uff09\uff0c\u5df2\u4fee\u6539\uff08modified\uff09\u548c\u5df2\u6682\u5b58\uff08staged\uff09\u3002\u5df2\u63d0\u4ea4\u8868\u793a\u8be5\u6587\u4ef6\u5df2\u7ecf\u88ab\u5b89\u5168\u5730\u4fdd\u5b58\u5728\u672c\u5730\u7248\u672c\u5e93\u4e2d\u4e86\uff1b\u5df2\u4fee\u6539\u8868\u793a\u4fee\u6539\u4e86\u67d0\u4e2a\u6587\u4ef6\uff0c\u4f46\u8fd8\u6ca1\u6709\u63d0\u4ea4\u4fdd\u5b58\uff1b\u5df2\u6682\u5b58\u8868\u793a\u628a\u5df2\u4fee\u6539\u7684\u6587\u4ef6\u653e\u5728\u4e0b\u6b21\u63d0\u4ea4\u65f6\u8981\u4fdd\u5b58\u7684\u6e05\u5355\u4e2d\uff0c\u5373\u6682\u5b58\u533a\u57df\u3002\u6240\u4ee5\u4f7f\u7528Git\u7684\u57fa\u672c\u5de5\u4f5c\u6d41\u7a0b\u5c31\u662f\uff1a<\/p>\n\n\n\n<ul><li>\u5728\u5de5\u4f5c\u533a\u57df\u589e\u52a0\uff0c\u5220\u9664\u6216\u8005\u4fee\u6539\u6587\u4ef6\u3002<\/li><li>\u8fd0\u884c<code>git add<\/code>\uff0c\u5c06\u6587\u4ef6\u5feb\u7167\u4fdd\u5b58\u5230\u6682\u5b58\u533a\u57df\u3002<\/li><li>\u63d0\u4ea4\u66f4\u65b0\uff0c\u5c06\u6587\u4ef6\u6c38\u4e45\u7248\u4fdd\u5b58\u5230\u7248\u672c\u5e93\u4e2d\u3002<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-259.png\" alt=\"\" class=\"wp-image-8672\" width=\"424\" height=\"268\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-259.png 938w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-259-300x190.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-259-768x486.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-259-830x526.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-259-230x146.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-259-350x222.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-259-480x304.png 480w\" sizes=\"(max-width: 424px) 100vw, 424px\" \/><\/figure><\/div>\n\n\n\n<p><strong>Git\u5bf9\u8c61<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u73b0\u5728\u5df2\u7ecf\u660e\u767dGit\u7684\u57fa\u672c\u6d41\u7a0b\uff0c\u4f46Git\u662f\u600e\u4e48\u5b8c\u6210\u7684\u5462\uff1fGit\u600e\u4e48\u533a\u5206\u6587\u4ef6\u662f\u5426\u53d1\u751f\u53d8\u5316\uff1f\u4e0b\u9762\u7b80\u5355\u4ecb\u7ecd\u4e00\u4e0bGit\u7684\u57fa\u672c\u539f\u7406\u3002<\/p>\n\n\n\n<p><strong>SHA-1 \u6821\u9a8c\u548c<\/strong><\/p>\n\n\n\n<p>Git \u662f\u4e00\u5957\u5185\u5bb9\u5bfb\u5740\u6587\u4ef6\u7cfb\u7edf\u3002\u610f\u601d\u5c31\u662fGit \u4ece\u6838\u5fc3\u4e0a\u6765\u770b\u4e0d\u8fc7\u662f\u7b80\u5355\u5730\u5b58\u50a8\u952e\u503c\u5bf9\uff08<code>key-value<\/code>\uff09\uff0c<code>value<\/code>\u662f\u6587\u4ef6\u7684\u5185\u5bb9\uff0c\u800c<code>key<\/code>\u662f\u6587\u4ef6\u5185\u5bb9\u4e0e\u6587\u4ef6\u5934\u4fe1\u606f\u7684 40\u4e2a\u5b57\u7b26\u957f\u5ea6\u7684 SHA-1 \u6821\u9a8c\u548c\uff0c\u4f8b\u5982\uff1a<code>5453545dccd33565a585ffe5f53fda3e067b84d8<\/code>\u3002Git\u4f7f\u7528\u8be5\u6821\u9a8c\u548c\u4e0d\u662f\u4e3a\u4e86\u52a0\u5bc6\uff0c\u800c\u662f\u4e3a\u4e86\u6570\u636e\u7684\u5b8c\u6574\u6027\uff0c\u5b83\u53ef\u4ee5\u4fdd\u8bc1\uff0c\u5728\u5f88\u591a\u5e74\u540e\uff0c\u4f60\u91cd\u65b0checkout\u67d0\u4e2acommit\u65f6\uff0c\u4e00\u5b9a\u662f\u5b83\u591a\u5e74\u524d\u7684\u5f53\u65f6\u7684\u72b6\u6001\uff0c\u5b8c\u5168\u4e00\u6478\u4e00\u6837\u3002\u5f53\u4f60\u5bf9\u6587\u4ef6\u8fdb\u884c\u4e86\u54ea\u6015\u4e00\u4e01\u70b9\u513f\u7684\u4fee\u6539\uff0c\u4e5f\u4f1a\u8ba1\u7b97\u51fa\u5b8c\u5168\u4e0d\u540c\u7684 SHA-1 \u6821\u9a8c\u548c\uff0c\u8fd9\u79cd\u73b0\u8c61\u53eb\u505a\u201c\u96ea\u5d29\u6548\u5e94\u201d\uff08Avalanche effect\uff09\u3002<\/p>\n\n\n\n<p>SHA-1 \u6821\u9a8c\u548c\u56e0\u6b64\u5c31\u662f\u4e0a\u6587\u63d0\u5230\u7684\u6587\u4ef6\u7684<code>\u6307\u9488<\/code>\uff0c\u8fd9\u548cC\u8bed\u8a00\u4e2d\u7684<code>\u6307\u9488<\/code>\u5f88\u6709\u4e9b\u4e0d\u540c\uff1aC\u8bed\u8a00\u5c06\u6570\u636e\u5728\u5185\u5b58\u4e2d\u7684\u5730\u5740\u4f5c\u4e3a<code>\u6307\u9488<\/code>\uff0cGit\u5c06\u6587\u4ef6\u7684 SHA-1 \u6821\u9a8c\u548c\u4f5c\u4e3a<code>\u6307\u9488<\/code>\uff0c\u76ee\u7684\u90fd\u662f\u4e3a\u4e86\u552f\u4e00\u533a\u5206\u4e0d\u540c\u7684\u5bf9\u8c61\u3002\u4f46\u662f\u5f53C\u8bed\u8a00<code>\u6307\u9488<\/code>\u6307\u5411\u7684\u5185\u5b58\u4e2d\u7684\u5185\u5bb9\u53d1\u751f\u53d8\u5316\u65f6\uff0c<code>\u6307\u9488<\/code>\u5e76\u4e0d\u53d1\u751f\u53d8\u5316\uff0c\u4f46Git<code>\u6307\u9488<\/code>\u6307\u5411\u7684\u6587\u4ef6\u5185\u5bb9\u53d1\u751f\u53d8\u5316\u65f6\uff0c<code>\u6307\u9488<\/code>\u4e5f\u4f1a\u53d1\u751f\u53d8\u5316\u3002\u6240\u4ee5\uff0cGit\u4e2d\u6bcf\u4e00\u4e2a\u7248\u672c\u7684\u6587\u4ef6\uff0c\u90fd\u6709\u4e00\u4e2a\u552f\u4e00\u7684<code>\u6307\u9488<\/code>\u6307\u5411\u5b83\u3002<\/p>\n\n\n\n<p>\u6587\u4ef6(blob)\u5bf9\u8c61\uff0c\u6811(tree)\u5bf9\u8c61\uff0c\u63d0\u4ea4(commit)\u5bf9\u8c61<\/p>\n\n\n\n<p><code>blob<\/code> \u5bf9\u8c61\u4fdd\u5b58\u7684\u4ec5\u4ec5\u662f\u6587\u4ef6\u7684\u5185\u5bb9\uff0c<code>tree<\/code> \u5bf9\u8c61\u66f4\u50cf\u662f\u64cd\u4f5c\u7cfb\u7edf\u4e2d\u7684\u76ee\u5f55\uff0c\u5b83\u53ef\u4ee5\u4fdd\u5b58<code>blob<\/code>\u5bf9\u8c61\u548c<code>tree<\/code> \u5bf9\u8c61\u3002\u4e00\u4e2a\u5355\u72ec\u7684 <code>tree<\/code> \u5bf9\u8c61\u5305\u542b\u4e00\u6761\u6216\u591a\u6761 <code>tree<\/code> \u8bb0\u5f55\uff0c\u6bcf\u4e00\u6761\u8bb0\u5f55\u542b\u6709\u4e00\u4e2a\u6307\u5411 <code>blob<\/code> \u5bf9\u8c61\u6216\u5b50 <code>tree<\/code> \u5bf9\u8c61\u7684 SHA-1 \u6307\u9488\uff0c\u5e76\u9644\u6709\u8be5\u5bf9\u8c61\u7684\u6743\u9650\u6a21\u5f0f (mode)\u3001\u7c7b\u578b\u548c\u6587\u4ef6\u540d\u4fe1\u606f\u7b49\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-260.png\" alt=\"\" class=\"wp-image-8675\" width=\"437\" height=\"273\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-260.png 1008w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-260-300x188.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-260-768x482.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-260-830x520.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-260-230x144.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-260-350x219.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-260-480x301.png 480w\" sizes=\"(max-width: 437px) 100vw, 437px\" \/><\/figure><\/div>\n\n\n\n<p>\u5f53\u4f60\u5bf9\u6587\u4ef6\u8fdb\u884c\u4fee\u6539\u5e76\u63d0\u4ea4\u65f6\uff0c\u53d8\u5316\u7684\u6587\u4ef6\u4f1a\u751f\u6210\u4e00\u4e2a\u65b0\u7684<code>blob<\/code>\u5bf9\u8c61\uff0c\u8bb0\u5f55\u6587\u4ef6\u7684\u5b8c\u6574\u5185\u5bb9\uff08\u662f\u5168\u90e8\u5185\u5bb9\uff0c\u4e0d\u662f\u53d8\u5316\u5185\u5bb9\uff09\uff0c\u7136\u540e\u9488\u5bf9\u8be5\u6587\u4ef6\u6709\u4e00\u4e2a\u552f\u4e00\u7684 SHA-1 \u6821\u9a8c\u548c\uff0c\u4fee\u6539\u6b64\u6b21\u63d0\u4ea4\u8be5\u6587\u4ef6\u7684<code>\u6307\u9488<\/code>\u4e3a\u8be5 SHA-1 \u6821\u9a8c\u548c\uff0c\u800c\u5bf9\u4e8e\u6ca1\u6709\u53d8\u5316\u7684\u6587\u4ef6\uff0c\u7b80\u5355\u62f7\u8d1d\u4e0a\u4e00\u6b21\u7248\u672c\u7684<code>\u6307\u9488<\/code>\u5373 SHA-1 \u6821\u9a8c\u548c\uff0c\u800c\u4e0d\u4f1a\u751f\u6210\u4e00\u4e2a\u5168\u65b0\u7684<code>blob<\/code>\u5bf9\u8c61\uff0c\u8fd9\u4e5f\u89e3\u91ca\u4e8610M\u5927\u5c0f\u7684\u9879\u76ee\u8fdb\u884c10\u6b21\u63d0\u4ea4\u603b\u5927\u5c0f\u8fdc\u8fdc\u5c0f\u4e8e100M\u7684\u539f\u56e0\u3002<\/p>\n\n\n\n<p>\u53e6\u5916\uff0c\u6bcf\u6b21\u63d0\u4ea4\u53ef\u80fd\u4e0d\u4ec5\u4ec5\u53ea\u6709\u4e00\u4e2a <code>tree<\/code> \u5bf9\u8c61\uff0c\u5b83\u4eec\u6307\u660e\u4e86\u9879\u76ee\u7684\u4e0d\u540c\u5feb\u7167\uff0c\u4f46\u4f60\u5fc5\u987b\u8bb0\u4f4f\u6240\u6709\u5bf9\u8c61\u7684 SHA-1 \u6821\u9a8c\u548c\u624d\u80fd\u83b7\u5f97\u5b8c\u6574\u7684\u5feb\u7167\uff0c\u800c\u4e14\u6ca1\u6709\u4f5c\u8005\uff0c\u4f55\u65f6\uff0c\u4e3a\u4ec0\u4e48\u4fdd\u5b58\u8fd9\u4e9b\u5feb\u7167\u7684\u539f\u56e0\u3002<code>commit<\/code>\u5bf9\u8c61\u5c31\u662f\u95ee\u4e86\u89e3\u51b3\u8fd9\u4e9b\u95ee\u9898\u8bde\u751f\u7684\uff0c<code>commit<\/code> \u5bf9\u8c61\u7684\u683c\u5f0f\u5f88\u7b80\u5355\uff1a\u6307\u660e\u4e86\u8be5\u65f6\u95f4\u70b9\u9879\u76ee\u5feb\u7167\u7684\u9876\u5c42<code>tree<\/code>\u5bf9\u8c61\u3001\u4f5c\u8005\/\u63d0\u4ea4\u8005\u4fe1\u606f\uff08\u4ece Git \u8bbe\u7f6e\u7684 user.name \u548c user.email\u4e2d\u83b7\u5f97)\u4ee5\u53ca\u5f53\u524d\u65f6\u95f4\u6233\u3001\u4e00\u4e2a\u7a7a\u884c\uff0c\u4e0a\u4e00\u6b21\u7684\u63d0\u4ea4\u5bf9\u8c61\u7684ID\u4ee5\u53ca\u63d0\u4ea4\u6ce8\u91ca\u4fe1\u606f\u3002\u4f60\u53ef\u4ee5\u7b80\u5355\u7684\u8fd0\u884c<code>git log<\/code>\u6765\u83b7\u53d6\u8fd9\u65b0\u4fe1\u606f\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">    $ git log\n    commit 2cb0bb475c34a48957d18f67d0623e3304a26489\n    Author: lufficc &lt;luffy.lcc@gmail.com>\n    Date:   Sun Oct 2 17:29:30 2016 +0800\n        fix some font size\n    commit f0c8b4b31735b5e5e96e456f9b0c8d5fc7a3e68a\n    Author: lufficc &lt;luffy.lcc@gmail.com>\n    Date:   Sat Oct 1 02:55:48 2016 +0800\n        fix post show css\n    ***********\u7701\u7565***********<\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-261-1024x625.png\" alt=\"\" class=\"wp-image-8676\" width=\"562\" height=\"342\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-261-1024x625.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-261-300x183.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-261-768x469.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-261-830x506.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-261-230x140.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-261-350x214.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-261-480x293.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-261.png 1252w\" sizes=\"(max-width: 562px) 100vw, 562px\" \/><\/figure><\/div>\n\n\n\n<p>\u4e0a\u56fe\u7684Test.txt\u662f\u7b2c\u4e00\u6b21\u63d0\u4ea4\u4e4b\u524d\u751f\u6210\u7684\uff0c\u7b2c\u4e00\u6b21\u5b83\u7684\u521d\u59cb SHA-1 \u6821\u9a8c\u548c\u4ee5<code>3c4e9c<\/code>\u5f00\u5934\u3002\u968f\u540e\u5bf9\u5b83\u8fdb\u884c\u4e86\u4fee\u6539\uff0c\u6240\u4ee5\u7b2c\u4e8c\u6b21\u63d0\u4ea4\u65f6\u751f\u6210\u4e86\u4e00\u4e2a\u5168\u65b0<code>blob<\/code>\u5bf9\u8c61\uff0c\u6821\u9a8c\u548c\u4ee5<code>1f7a7a<\/code>\u5f00\u5934\u3002\u800c\u7b2c\u4e09\u6b21\u63d0\u4ea4\u65f6Test.txt\u5e76\u6ca1\u6709\u53d8\u5316\uff0c\u6240\u4ee5\u53ea\u662f\u4fdd\u5b58\u6700\u8fd1\u7248\u672c\u7684 SHA-1 \u6821\u9a8c\u548c\u800c\u4e0d\u751f\u6210\u5168\u65b0\u7684<code>blob<\/code>\u5bf9\u8c61\u3002\u5728\u9879\u76ee\u5f00\u53d1\u8fc7\u7a0b\u4e2d\u65b0\u589e\u52a0\u7684\u6587\u4ef6\u5728\u63d0\u4ea4\u540e\u90fd\u4f1a\u751f\u6210\u4e00\u4e2a\u5168\u65b0\u7684<code>blob<\/code>\u5bf9\u8c61\u6765\u4fdd\u5b58\u5b83\u3002<strong>\u6ce8\u610f\u9664\u4e86\u7b2c\u4e00\u6b21\u6bcf\u4e2a\u63d0\u4ea4\u5bf9\u8c61\u90fd\u6709\u4e00\u4e2a\u6307\u5411\u4e0a\u4e00\u6b21\u63d0\u4ea4\u5bf9\u8c61\u7684\u6307\u9488<\/strong>\u3002<\/p>\n\n\n\n<p>\u56e0\u6b64\u7b80\u5355\u6765\u8bf4\uff0c<code>blob<\/code>\u5bf9\u8c61\u4fdd\u5b58\u6587\u4ef6\u7684\u5185\u5bb9\uff1b<code>tree<\/code>\u5bf9\u8c61\u7c7b\u4f3c\u6587\u4ef6\u5939\uff0c\u4fdd\u5b58<code>blob<\/code>\u5bf9\u8c61\u548c\u5176\u5b83<code>tree<\/code>\u5bf9\u8c61\uff1b<code>commit<\/code>\u5bf9\u8c61\u4fdd\u5b58<code>tree<\/code>\u5bf9\u8c61\uff0c\u63d0\u4ea4\u4fe1\u606f\uff0c\u4f5c\u8005\uff0c\u90ae\u7bb1\u4ee5\u53ca\u4e0a\u4e00\u6b21\u7684\u63d0\u4ea4\u5bf9\u8c61\u7684ID\uff08\u7b2c\u4e00\u6b21\u63d0\u4ea4\u6ca1\u6709\uff09\u3002\u800cGit\u5c31\u662f\u901a\u8fc7\u7ec4\u7ec7\u548c\u7ba1\u7406\u8fd9\u4e9b\u5bf9\u8c61\u7684\u72b6\u6001\u4ee5\u53ca\u590d\u6742\u7684\u5173\u7cfb\u5b9e\u73b0\u7684\u7248\u672c\u63a7\u5236\u4ee5\u53ca\u4ee5\u53ca\u5176\u4ed6\u529f\u80fd\u5982\u5206\u652f\u3002<\/p>\n\n\n\n<p><strong>Git\u5f15\u7528<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p>\u73b0\u5728\u518d\u6765\u770b\u5f15\u7528\uff0c\u5c31\u4f1a\u5f88\u7b80\u5355\u4e86\u3002\u5982\u679c\u6211\u4eec\u60f3\u8981\u770b\u67d0\u4e2a\u63d0\u4ea4\u8bb0\u5f55\u4e4b\u524d\u7684\u5b8c\u6574\u5386\u53f2\uff0c\u5c31\u5fc5\u987b\u8bb0\u4f4f\u8fd9\u4e2a\u63d0\u4ea4ID\uff0c\u4f46\u63d0\u4ea4ID\u662f\u4e00\u4e2a40\u4f4d\u7684 SHA-1 \u6821\u9a8c\u548c\uff0c\u96be\u8bb0\u3002\u6240\u4ee5\u5f15\u7528\u5c31\u662fSHA-1 \u6821\u9a8c\u548c\u7684\u522b\u540d\uff0c\u5b58\u50a8\u5728<code>.git\/refs<\/code>\u6587\u4ef6\u5939\u4e2d\u3002<\/p>\n\n\n\n<p>\u6700\u5e38\u89c1\u7684\u5f15\u7528\u4e5f\u8bb8\u5c31\u662f<code>master<\/code>\u4e86\uff0c\u56e0\u4e3a\u8fd9\u662fGit\u9ed8\u8ba4\u521b\u5efa\u7684\uff08\u53ef\u4ee5\u4fee\u6539\uff0c\u4f46\u4e00\u822c\u4e0d\u4fee\u6539\uff09\uff0c\u5b83\u59cb\u7ec8\u6307\u5411\u4f60\u9879\u76ee\u4e3b\u5206\u652f\u7684\u6700\u540e\u4e00\u6b21\u63d0\u4ea4\u8bb0\u5f55\u3002\u5982\u679c\u5728\u9879\u76ee\u6839\u76ee\u5f55\u8fd0\u884c<code>cat .git\/refs\/heads<\/code>\uff0c\u4f1a\u8f93\u51fa\u4e00\u4e2aSHA-1 \u6821\u9a8c\u548c\uff0c\u4f8b\u5982\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">    $ cat .git\/refs\/heads\/master\n    4f3e6a6f8c62bde818b4b3d12c8cf3af45d6dc00<\/pre>\n\n\n\n<p>\u56e0\u6b64<code>master<\/code>\u53ea\u662f\u4e00\u4e2a40\u4f4dSHA-1 \u6821\u9a8c\u548c\u7684\u522b\u540d\u7f62\u4e86\u3002<\/p>\n\n\n\n<p>\u8fd8\u6709\u4e00\u4e2a\u95ee\u9898\uff0cGit\u5982\u4f55\u77e5\u9053\u4f60\u5f53\u524d\u5206\u652f\u7684\u6700\u540e\u4e00\u6b21\u7684\u63d0\u4ea4ID?\u5728<code>.git<\/code>\u6587\u4ef6\u5939\u4e0b\u6709\u4e00\u4e2a<code>HEAD<\/code>\u6587\u4ef6\uff0c\u50cf\u8fd9\u6837\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">    $ cat .git\/HEAD\n    ref: refs\/heads\/master<\/pre>\n\n\n\n<p><code>HEAD<\/code>\u6587\u4ef6\u5176\u5b9e\u5e76\u4e0d\u5305\u542b SHA-1 \u503c\uff0c\u800c\u662f\u4e00\u4e2a\u6307\u5411\u5f53\u524d\u5206\u652f\u7684\u5f15\u7528\uff0c\u5185\u5bb9\u4f1a\u968f\u7740\u5207\u6362\u5206\u652f\u800c\u53d8\u5316\uff0c\u5185\u5bb9\u683c\u5f0f\u50cf\u8fd9\u6837\uff1a<code>ref: refs\/heads\/&lt;branch-name&gt;<\/code>\u3002\u5f53\u4f60\u6267\u884c<code>git commit<\/code>\u547d\u4ee4\u65f6\uff0c\u5b83\u5c31\u521b\u5efa\u4e86\u4e00\u4e2a<code>commit<\/code>\u5bf9\u8c61\uff0c\u628a\u8fd9\u4e2a<code>commit<\/code>\u5bf9\u8c61\u7684\u7236\u7ea7\u8bbe\u7f6e\u4e3a <code>HEAD<\/code> \u6307\u5411\u7684\u5f15\u7528\u7684 SHA-1 \u503c\u3002<\/p>\n\n\n\n<p>\u518d\u6765\u8bf4\u8bf4 Git \u7684 tag\uff0c\u6807\u7b7e\u3002\u6807\u7b7e\u4ece\u67d0\u79cd\u610f\u4e49\u4e0a\u50cf\u662f\u4e00\u4e2a\u5f15\u7528\uff0c \u5b83\u6307\u5411\u4e00\u4e2a <code>commit<\/code> \u5bf9\u8c61\u800c\u4e0d\u662f\u4e00\u4e2a <code>tree<\/code>\uff0c\u5305\u542b\u4e00\u4e2a\u6807\u7b7e\uff0c\u4e00\u7ec4\u6570\u636e\uff0c\u4e00\u4e2a\u6d88\u606f\u548c\u4e00\u4e2a<code>commit<\/code> \u5bf9\u8c61\u7684\u6307\u9488\u3002\u4f46\u662f\u533a\u522b\u5c31\u662f\u5f15\u7528\u968f\u7740\u9879\u76ee\u8fdb\u884c\u5b83\u7684\u503c\u5728\u4e0d\u65ad\u5411\u524d\u63a8\u8fdb\u53d8\u5316\uff0c\u4f46\u662f\u6807\u7b7e\u4e0d\u4f1a\u53d8\u5316\u2014\u2014\u6c38\u8fdc\u6307\u5411\u540c\u4e00\u4e2a <code>commit<\/code>\uff0c\u4ec5\u4ec5\u662f\u63d0\u4f9b\u4e00\u4e2a\u66f4\u52a0\u53cb\u597d\u7684\u540d\u5b57\u3002<\/p>\n\n\n\n<p><strong>Git\u5206\u652f<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<p><strong>\u5206\u652f<\/strong><\/p>\n\n\n\n<p>\u5206\u652f\u662fGit\u7684\u6740\u624b\u7ea7\u7279\u5f81\uff0c\u800c\u4e14Git\u9f13\u52b1\u5728\u5de5\u4f5c\u6d41\u7a0b\u4e2d\u9891\u7e41\u4f7f\u7528\u5206\u652f\u4e0e\u5408\u5e76\uff0c\u54ea\u6015\u4e00\u5929\u4e4b\u5185\u8fdb\u884c\u8bb8\u591a\u6b21\u90fd\u6ca1\u6709\u5173\u7cfb\u3002\u56e0\u4e3aGit\u5206\u652f\u975e\u5e38\u8f7b\u91cf\u7ea7\uff0c\u4e0d\u50cf\u5176\u4ed6\u7684\u7248\u672c\u63a7\u5236\uff0c\u521b\u5efa\u5206\u652f\u610f\u5473\u7740\u8981\u628a\u9879\u76ee\u5b8c\u6574\u7684\u62f7\u8d1d\u4e00\u4efd\uff0c\u800cGit\u521b\u5efa\u5206\u652f\u662f\u5728\u77ac\u95f4\u5b8c\u6210\u7684\uff0c\u800c\u4e0e\u4f60\u5de5\u7a0b\u7684\u590d\u6742\u7a0b\u5ea6\u65e0\u5173\u3002<\/p>\n\n\n\n<p>\u56e0\u4e3a\u5728\u4e0a\u6587\u4e2d\u5df2\u7ecf\u8bf4\u5230\uff0cGit\u4fdd\u5b58\u6587\u4ef6\u7684\u6700\u57fa\u672c\u7684\u5bf9\u8c61\u662f<code>blob<\/code>\u5bf9\u8c61\uff0cGit\u672c\u8d28\u4e0a\u53ea\u662f\u4e00\u68f5\u5de8\u5927\u7684\u6587\u4ef6\u6811\uff0c\u6811\u7684\u6bcf\u4e00\u4e2a\u8282\u70b9\u5c31\u662f<code>blob<\/code>\u5bf9\u8c61\uff0c\u800c\u5206\u652f\u53ea\u662f\u6811\u7684\u4e00\u4e2a\u5206\u53c9\u3002\u8bf4\u767d\u4e86\uff0c\u5206\u652f\u5c31\u662f\u4e00\u4e2a\u6709\u540d\u5b57\u7684\u5f15\u7528\uff0c\u5b83\u5305\u542b\u4e00\u4e2a\u63d0\u4ea4\u5bf9\u8c61\u7684\u768440\u4f4d\u6821\u9a8c\u548c\uff0c\u6240\u4ee5\u521b\u5efa\u5206\u652f\u5c31\u662f\u5411\u4e00\u4e2a\u6587\u4ef6\u5199\u5165 41 \u4e2a\u5b57\u8282\uff08\u5916\u52a0\u4e00\u4e2a\u6362\u884c\u7b26\uff09\u90a3\u4e48\u7b80\u5355\uff0c\u6240\u4ee5\u81ea\u7136\u5c31\u5feb\u4e86\uff0c\u800c\u4e14\u4e0e\u9879\u76ee\u7684\u590d\u6742\u7a0b\u5ea6\u65e0\u5173\u3002<\/p>\n\n\n\n<p>Git\u7684\u9ed8\u8ba4\u5206\u652f\u662fmaster\uff0c\u5b58\u50a8\u5728<code>.git\\refs\\heads\\master<\/code>\u6587\u4ef6\u4e2d\uff0c\u5047\u8bbe\u4f60\u5728master\u5206\u652f\u8fd0\u884c<code>git branch dev<\/code>\u521b\u5efa\u4e86\u4e00\u4e2a\u540d\u5b57\u4e3a<code>dev<\/code>\u7684\u5206\u652f\uff0c\u90a3\u4e48git\u6240\u505a\u7684\u5b9e\u9645\u64cd\u4f5c\u662f\uff1a<\/p>\n\n\n\n<ul><li>\u5728<code>.git\\refs\\heads<\/code>\u6587\u4ef6\u5939\u4e0b\u65b0\u5efa\u4e00\u4e2a\u6587\u4ef6\u540d\u4e3a<code>dev<\/code>\uff08\u6ca1\u6709\u6269\u5c55\u540d\uff09\u7684\u6587\u672c\u6587\u4ef6\u3002<\/li><li>\u5c06HEAD\u6307\u5411\u7684\u5f53\u524d\u5206\u652f\uff08\u5f53\u524d\u4e3a<code>master<\/code>\uff09\u768440\u4f4dSHA-1 \u6821\u9a8c\u548c\u5916\u52a0\u4e00\u4e2a\u6362\u884c\u7b26\u5199\u5165<code>dev<\/code>\u6587\u4ef6\u3002<\/li><li>\u7ed3\u675f\u3002<\/li><\/ul>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-262-1024x212.png\" alt=\"\" class=\"wp-image-8679\" width=\"550\" height=\"113\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-262-1024x212.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-262-300x62.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-262-768x159.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-262-830x172.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-262-230x48.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-262-350x73.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-262-480x100.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-262.png 1118w\" sizes=\"(max-width: 550px) 100vw, 550px\" \/><\/figure><\/div>\n\n\n\n<p>\u8bb0\u4f4f\uff0c<code>HEAD<\/code>\u6587\u4ef6\u6307\u5411\u5f53\u524d\u5206\u652f\u7684\u6700\u540e\u4e00\u6b21\u63d0\u4ea4\uff0c\u540c\u65f6\uff0c\u5b83\u4e5f\u662f\u4ee5\u5f53\u524d\u5206\u652f\u518d\u6b21\u521b\u5efa\u4e00\u4e2a\u5206\u652f\u65f6\uff0c\u5c06\u8981\u5199\u5165\u7684\u5185\u5bb9\u3002<\/p>\n\n\n\n<p><strong>\u5206\u652f\u5408\u5e76<\/strong><\/p>\n\n\n\n<p>\u518d\u6765\u8bf4\u4e00\u8bf4\u5408\u5e76\uff0c\u9996\u5148\u662fFast-forward\uff0c\u6362\u53e5\u8bdd\u8bf4\uff0c\u5982\u679c\u987a\u7740\u4e00\u4e2a\u5206\u652f\u8d70\u4e0b\u53bb\u53ef\u4ee5\u5230\u8fbe\u53e6\u4e00\u4e2a\u5206\u652f\u7684\u8bdd\uff0c\u90a3\u4e48 Git \u5728\u5408\u5e76\u4e24\u8005\u65f6\uff0c\u53ea\u4f1a\u7b80\u5355\u5730\u628a\u6307\u9488\u53f3\u79fb\uff0c\u56e0\u4e3a\u8fd9\u79cd\u5355\u7ebf\u7684\u5386\u53f2\u5206\u652f\u4e0d\u5b58\u5728\u4efb\u4f55\u9700\u8981\u89e3\u51b3\u7684\u5206\u6b67\uff0c\u6240\u4ee5\u8fd9\u79cd\u5408\u5e76\u8fc7\u7a0b\u53ef\u4ee5\u79f0\u4e3a\u5feb\u8fdb\uff08Fast forward\uff09\u3002\u6bd4\u5982\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-263-1024x263.png\" alt=\"\" class=\"wp-image-8681\" width=\"571\" height=\"146\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-263-1024x263.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-263-300x77.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-263-768x197.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-263-830x213.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-263-230x59.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-263-350x90.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-263-480x123.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-263.png 1146w\" sizes=\"(max-width: 571px) 100vw, 571px\" \/><\/figure><\/div>\n\n\n\n<p><strong><em>\u6ce8\u610f\u7bad\u5934\u65b9\u5411\uff0c\u56e0\u4e3a\u6bcf\u4e00\u6b21\u63d0\u4ea4\u90fd\u6709\u4e00\u4e2a\u6307\u5411\u4e0a\u4e00\u6b21\u63d0\u4ea4\u7684\u6307\u9488\uff0c\u6240\u4ee5\u7bad\u5934\u65b9\u5411\u5411\u5de6\uff0c\u66f4\u4e3a\u5408\u7406<\/em><\/strong><\/p>\n\n\n\n<p>\u5f53\u5728<code>master<\/code>\u5206\u652f\u5408\u5e76<code>dev<\/code>\u5206\u652f\u65f6\uff0c\u56e0\u4e3a\u4ed6\u4eec\u5728\u4e00\u6761\u7ebf\u4e0a\uff0c\u8fd9\u79cd\u5355\u7ebf\u7684\u5386\u53f2\u5206\u652f\u4e0d\u5b58\u5728\u4efb\u4f55\u9700\u8981\u89e3\u51b3\u7684\u5206\u6b67\uff0c\u6240\u4ee5\u53ea\u9700\u8981<code>master<\/code>\u5206\u652f\u6307\u5411<code>dev<\/code>\u5206\u652f\u5373\u53ef\uff0c\u6240\u4ee5\u975e\u5e38\u5feb\u3002<\/p>\n\n\n\n<p>\u5f53\u5206\u652f\u51fa\u73b0\u5206\u53c9\u65f6\uff0c\u5c31\u6709\u53ef\u80fd\u51fa\u73b0\u51b2\u7a81\uff0c\u800c\u8fd9\u65f6Git\u5c31\u4f1a\u8981\u6c42\u4f60\u53bb\u89e3\u51b3\u51b2\u7a81\uff0c\u6bd4\u5982\u50cf\u4e0b\u9762\u7684\u5386\u53f2\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-264-1024x601.png\" alt=\"\" class=\"wp-image-8682\" width=\"478\" height=\"281\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-264-1024x601.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-264-300x176.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-264-768x451.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-264-830x487.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-264-230x135.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-264-350x205.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-264-480x282.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-264.png 1152w\" sizes=\"(max-width: 478px) 100vw, 478px\" \/><\/figure><\/div>\n\n\n\n<p>\u56e0\u4e3a<code>master<\/code>\u5206\u652f\u548c<code>dev<\/code>\u5206\u652f\u4e0d\u5728\u4e00\u6761\u7ebf\u4e0a\uff0c\u5373<code>v7<\/code>\u4e0d\u662f<code>v5<\/code>\u7684\u76f4\u63a5\u7956\u5148\uff0cGit \u4e0d\u5f97\u4e0d\u8fdb\u884c\u4e00\u4e9b\u989d\u5916\u5904\u7406\u3002\u5c31\u6b64\u4f8b\u800c\u8a00\uff0cGit \u4f1a\u7528\u4e24\u4e2a\u5206\u652f\u7684\u672b\u7aef\uff08<code>v7<\/code> \u548c <code>v5<\/code>\uff09\u4ee5\u53ca\u5b83\u4eec\u7684\u5171\u540c\u7956\u5148\uff08<code>v3<\/code>\uff09\u8fdb\u884c\u4e00\u6b21\u7b80\u5355\u7684\u4e09\u65b9\u5408\u5e76\u8ba1\u7b97\u3002\u5408\u5e76\u4e4b\u540e\u4f1a\u751f\u6210\u4e00\u4e2a\u548c\u5e76\u63d0\u4ea4<code>v8<\/code>\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-265-1024x456.png\" alt=\"\" class=\"wp-image-8683\" width=\"533\" height=\"237\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-265-1024x456.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-265-300x134.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-265-768x342.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-265-830x370.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-265-230x103.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-265-350x156.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-265-480x214.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-265.png 1382w\" sizes=\"(max-width: 533px) 100vw, 533px\" \/><figcaption>\u6ce8\u610f\uff1a\u548c\u5e76\u63d0\u4ea4\u6709\u4e24\u4e2a\u7956\u5148\uff08<code>v7<\/code>\u548c<code>v5<\/code>\uff09<\/figcaption><\/figure><\/div>\n\n\n\n<p><strong>\u5206\u652f\u7684\u53d8\u57farebase<\/strong><\/p>\n\n\n\n<p>\u628a\u4e00\u4e2a\u5206\u652f\u4e2d\u7684\u4fee\u6539\u6574\u5408\u5230\u53e6\u4e00\u4e2a\u5206\u652f\u7684\u529e\u6cd5\u6709\u4e24\u79cd\uff1a<code>merge<\/code> \u548c <code>rebase<\/code>\u3002\u9996\u5148<code>merge<\/code> \u548c <code>rebase<\/code>\u6700\u7ec8\u7684\u7ed3\u679c\u662f\u4e00\u6837\u7684\uff0c\u4f46 <code>rebase<\/code>\u80fd\u4ea7\u751f\u4e00\u4e2a\u66f4\u4e3a\u6574\u6d01\u7684\u63d0\u4ea4\u5386\u53f2\u3002\u4ecd\u7136\u4ee5\u4e0a\u56fe\u4e3a\u4f8b\uff0c\u5982\u679c\u7b80\u5355\u7684<code>merge<\/code>\uff0c\u4f1a\u751f\u6210\u4e00\u4e2a\u63d0\u4ea4\u5bf9\u8c61<code>v8<\/code>\uff0c\u73b0\u5728\u6211\u4eec\u5c1d\u8bd5\u4f7f\u7528\u53d8\u57fa\u5408\u5e76\u5206\u652f\uff0c\u5207\u6362\u5230<code>dev<\/code>\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">    $ git checkout dev\n    $ git rebase master\n    First, rewinding head to replay your work on top of it...\n    Applying: added staged command<\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-266-1024x625.png\" alt=\"\" class=\"wp-image-8684\" width=\"478\" height=\"291\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-266-1024x625.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-266-300x183.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-266-768x469.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-266-830x506.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-266-230x140.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-266-350x214.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-266-480x293.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-266.png 1144w\" sizes=\"(max-width: 478px) 100vw, 478px\" \/><\/figure><\/div>\n\n\n\n<p>\u8fd9\u6bb5\u4ee3\u7801\u7684\u610f\u601d\u662f\uff1a\u56de\u5230\u4e24\u4e2a\u5206\u652f\u6700\u8fd1\u7684\u5171\u540c\u7956\u5148<code>v3<\/code>\uff0c\u6839\u636e\u5f53\u524d\u5206\u652f\uff08\u4e5f\u5c31\u662f\u8981\u8fdb\u884c\u53d8\u57fa\u7684\u5206\u652f <code>dev<\/code>\uff09\u540e\u7eed\u7684\u5386\u6b21\u63d0\u4ea4\u5bf9\u8c61\uff08\u5305\u62ec<code>v4<\/code>\uff0c<code>v5<\/code>\uff09\uff0c\u751f\u6210\u4e00\u7cfb\u5217\u6587\u4ef6\u8865\u4e01\uff0c\u7136\u540e\u4ee5\u57fa\u5e95\u5206\u652f\uff08\u4e5f\u5c31\u662f\u4e3b\u5e72\u5206\u652f <code>master<\/code>\uff09\u6700\u540e\u4e00\u4e2a\u63d0\u4ea4\u5bf9\u8c61\uff08<code>v7<\/code>\uff09\u4e3a\u65b0\u7684\u51fa\u53d1\u70b9\uff0c\u9010\u4e2a\u5e94\u7528\u4e4b\u524d\u51c6\u5907\u597d\u7684\u8865\u4e01\u6587\u4ef6\uff0c\u6700\u540e\u4f1a\u751f\u6210\u4e24\u4e2a\u65b0\u7684\u5408\u5e76\u63d0\u4ea4\u5bf9\u8c61\uff08<code>v4'<\/code>\uff0c<code>v5'<\/code>\uff09,\u4ece\u800c\u6539\u5199 <code>dev<\/code> \u7684\u63d0\u4ea4\u5386\u53f2\uff0c\u4f7f\u5b83\u6210\u4e3a master \u5206\u652f\u7684\u76f4\u63a5\u4e0b\u6e38\uff0c\u5982\u4e0b\u56fe\uff1a<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-267-1024x337.png\" alt=\"\" class=\"wp-image-8685\" width=\"546\" height=\"179\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-267-1024x337.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-267-300x99.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-267-768x253.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-267-830x274.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-267-230x76.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-267-350x115.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-267-480x158.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-267.png 1402w\" sizes=\"(max-width: 546px) 100vw, 546px\" \/><\/figure><\/div>\n\n\n\n<p>\u73b0\u5728\uff0c\u5c31\u53ef\u4ee5\u56de\u5230<code>master<\/code>\u5206\u652f\u8fdb\u884c\u5feb\u901f\u5408\u5e76Fast-forward\u4e86\uff0c\u56e0\u4e3a<code>master<\/code>\u5206\u652f\u548c<code>dev<\/code>\u5206\u652f\u5728\u4e00\u6761\u7ebf\u4e0a\uff1a<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\"><\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-large is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/123.57.164.21\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-268-1024x358.png\" alt=\"\" class=\"wp-image-8686\" width=\"552\" height=\"192\" srcset=\"https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-268-1024x358.png 1024w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-268-300x105.png 300w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-268-768x269.png 768w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-268-830x290.png 830w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-268-230x80.png 230w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-268-350x122.png 350w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-268-480x168.png 480w, https:\/\/92it.top\/wp-content\/uploads\/2022\/11\/\u56fe\u7247-268.png 1384w\" sizes=\"(max-width: 552px) 100vw, 552px\" \/><\/figure><\/div>\n\n\n\n<p>\u73b0\u5728\u7684<code>v5'<\/code>\u5bf9\u5e94\u7684\u5feb\u7167\uff0c\u5176\u5b9e\u548c\u666e\u901a\u7684\u4e09\u65b9\u5408\u5e76\uff0c\u5373\u4e0a\u4e2a\u4f8b\u5b50\u4e2d\u7684 <code>v8<\/code> \u5bf9\u5e94\u7684\u5feb\u7167\u5185\u5bb9\u4e00\u6a21\u4e00\u6837\u3002\u867d\u7136\u6700\u540e\u6574\u5408\u5f97\u5230\u7684\u7ed3\u679c\u6ca1\u6709\u4efb\u4f55\u533a\u522b\uff0c\u4f46\u53d8\u57fa\u80fd\u4ea7\u751f\u4e00\u4e2a\u66f4\u4e3a\u6574\u6d01\u7684\u63d0\u4ea4\u5386\u53f2\u3002\u5982\u679c\u89c6\u5bdf\u4e00\u4e2a\u53d8\u57fa\u8fc7\u7684\u5206\u652f\u7684\u5386\u53f2\u8bb0\u5f55\uff0c\u770b\u8d77\u6765\u4f1a\u66f4\u6e05\u695a\uff1a\u4eff\u4f5b\u6240\u6709\u4fee\u6539\u90fd\u662f\u5728\u4e00\u6839\u7ebf\u4e0a\u5148\u540e\u8fdb\u884c\u7684\uff0c\u5c3d\u7ba1\u5b9e\u9645\u4e0a\u5b83\u4eec\u539f\u672c\u662f\u540c\u65f6\u5e76\u884c\u53d1\u751f\u7684\u3002<\/p>\n\n\n\n<p><strong>\u603b\u7ed3<\/strong><\/p>\n\n\n\n<hr class=\"wp-block-separator\"\/>\n\n\n\n<ul><li>Git\u4fdd\u5b58\u6587\u4ef6\u7684\u5b8c\u6574\u5185\u5bb9\uff0c\u4e0d\u4fdd\u5b58\u5dee\u91cf\u53d8\u5316\u3002<\/li><li>Git\u4ee5\u50a8\u952e\u503c\u5bf9\uff08<code>key-value<\/code>\uff09\u7684\u65b9\u5f0f\u4fdd\u5b58\u6587\u4ef6\u3002<\/li><li>\u6bcf\u4e00\u4e2a\u6587\u4ef6\uff0c\u76f8\u540c\u6587\u4ef6\u7684\u4e0d\u540c\u7248\u672c\uff0c\u90fd\u6709\u4e00\u4e2a\u552f\u4e00\u768440\u4f4d\u7684 SHA-1 \u6821\u9a8c\u548c\u4e0e\u4e4b\u5bf9\u5e94\u3002<\/li><li>SHA-1 \u6821\u9a8c\u548c\u662f\u6587\u4ef6\u7684\u6307\u9488\uff0cGit\u4f9d\u9760\u5b83\u6765\u533a\u5206\u6587\u4ef6\u3002<\/li><li>\u6bcf\u4e00\u4e2a\u6587\u4ef6\u90fd\u4f1a\u5728Git\u7684\u7248\u672c\u5e93\u91cc\u751f\u6210<code>blob<\/code>\u5bf9\u8c61\u6765\u4fdd\u5b58\u3002<\/li><li>\u5bf9\u4e8e\u6ca1\u6709\u53d8\u5316\u7684\u6587\u4ef6\uff0cGit\u53ea\u4f1a\u4fdd\u7559\u4e0a\u4e00\u4e2a\u7248\u672c\u7684\u6307\u9488\u3002<\/li><li>Git\u5b9e\u9645\u4e0a\u662f\u901a\u8fc7\u7ef4\u6301\u590d\u6742\u7684\u6587\u4ef6\u6811\u6765\u5b9e\u73b0\u7248\u672c\u63a7\u5236\u7684\u3002<\/li><li>\u4f7f\u7528Git\u7684\u5de5\u4f5c\u6d41\u7a0b\u57fa\u672c\u5c31\u662f\u5c31\u662f\u6587\u4ef6\u5728\u4e09\u4e2a\u5de5\u4f5c\u533a\u57df\u4e4b\u95f4\u7684\u6d41\u52a8\u3002<\/li><li>\u5e94\u8be5\u5927\u91cf\u4f7f\u7528\u5206\u652f\u8fdb\u884c\u56e2\u961f\u534f\u4f5c\u3002<\/li><li>\u5206\u652f\u53ea\u662f\u5bf9\u63d0\u4ea4\u5bf9\u8c61\u7684\u4e00\u4e2a\u5f15\u7528\u3002<\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u6587\u4e0d\u662fGit\u4f7f\u7528\u6559\u5b66\u7bc7\uff0c\u800c\u662f\u504f\u5411\u7406\u8bba\u65b9\u9762\uff0c\u65e8\u5728\u66f4\u52a0\u6df1\u523b\u7684\u7406\u89e3Git\uff0c\u8fd9\u6837\u624d\u80fd\u66f4\u597d\u7684\u4f7f\u7528\u5b83\uff0c\u8ba9\u5de5\u5177\u6210\u4e3a\u6211\u4eec\u5f97\u529b [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[],"_links":{"self":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/8661"}],"collection":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=8661"}],"version-history":[{"count":10,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/8661\/revisions"}],"predecessor-version":[{"id":8687,"href":"https:\/\/92it.top\/index.php?rest_route=\/wp\/v2\/posts\/8661\/revisions\/8687"}],"wp:attachment":[{"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=8661"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=8661"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/92it.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=8661"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}