{"id":37530,"date":"2023-11-07T06:07:11","date_gmt":"2023-11-06T22:07:11","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=37530"},"modified":"2023-11-07T06:07:11","modified_gmt":"2023-11-06T22:07:11","slug":"fork-github","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/fork-github.html","title":{"rendered":"\u5bf9\u201cFork\u201d\u505a\u4e00\u4e2a\u6280\u672f\u65b9\u9762\u7684\u7b80\u4ecb"},"content":{"rendered":"
\u4f7f\u7528\u8fc7 GitHub \u7684\u4eba\u5927\u591a\u77e5\u9053\u5b83\u4e0a\u9762\u6709\u4e2a\u201cFork\u201d\u7684\u529f\u80fd\uff0c\u7528\u6765\u5c06\u67d0\u4e2a\u4ed3\u5e93\u514b\u9686\u5230\u4f60\u7684\u8d26\u6237\u4e4b\u4e0b\uff0c\u4ece\u800c\u53ef\u4ee5\u5bf9\u5176\u8fdb\u884c\u4fee\u6539\u3001\u884d\u751f\uff0c\u4e5f\u53ef\u4ee5\u6bd4\u8f83\u65b9\u4fbf\u7684\u5c06\u4f60\u7684\u4fee\u6539\u63a8\u56de\u5230\u539f\u6765\u7684\u4ed3\u5e93\uff08\u6240\u8c13\u7684\u4e0a\u6e38\uff09\u3002<\/p>\n
\u968f\u7740 GitHub \u7684\u6d41\u884c\uff0c\u6211\u4eec\u7ecf\u5e38\u80fd\u5728\u5404\u79cd\u6587\u7ae0\u4e2d\u89c1\u5230\uff0c\u201cfork \u67d0\u67d0\u9879\u76ee\u201d\u7b49\u8bf4\u6cd5\uff0c\u662f\u7684\uff0c\u201cfork\u201d\u8fd9\u4e2a\u4e00\u76f4\u6ca1\u6709\u4e00\u4e2a\u6b63\u5f0f\u7684\u8bd1\u540d\u3002<\/p>\n
\u5176\u5b9e\u8fd9\u4e2a\u95ee\u9898\u4e0d\u72ec\u51fa\u73b0\u5728 GitHub \u4e2d\uff0cfork \u8fd9\u4e2a\u8bcd\u66f4\u65e9\u7684\u51fa\u73b0\u5728 Unix\/Linux \u4e2d\u7684 C \u8bed\u8a00\u7f16\u7a0b\u4e4b\u4e2d\u3002\u5728 Unix\/Linux \u7684\u8fdb\u7a0b\u6a21\u578b\u4e2d\uff0cfork \u662f\u6307\u8fdb\u7a0b\u521b\u5efa\u81ea\u8eab\u526f\u672c\u7684\u64cd\u4f5c\uff0c\u5b83\u901a\u5e38\u662f\u4e00\u4e2a\u5728\u5185\u6838\u4e2d\u5b9e\u73b0\u7684\u7cfb\u7edf\u8c03\u7528\u3002fork \u662f Unix \u7c7b\u7cfb\u7edf\u4e2d\u8fdb\u7a0b\u521b\u5efa\u7684\u4e3b\u8981\u65b9\u5f0f\uff08\u5386\u53f2\u4e0a\u66fe\u7ecf\u662f\u552f\u4e00\u7684\u65b9\u5f0f\uff09\u3002\u4ece\u90a3\u4e2a\u65f6\u5019\u8d77\uff0cfork \u5c31\u4e00\u76f4\u6ca1\u6709\u4e00\u4e2a\u786e\u5b9a\u7684\u8bd1\u540d\u3002<\/p>\n
\u4e0d\u8fc7\uff0c\u6211\u4eec\u8ba4\u4e3a\uff0c\u5bf9\u4e8e\u8fd9\u6837\u7684\u4e00\u4e2a\u7ecf\u5e38\u4f7f\u7528\u7684\u4e13\u4e1a\u540d\u8bcd\uff0c\u6709\u4e00\u4e2a\u660e\u786e\u7684\u8bd1\u540d\u6bd4\u8f83\u9002\u5408\uff0c\u867d\u7136\u5927\u5bb6\u90fd\u4e60\u60ef\u4e86\u76f4\u63a5\u7528 fork \u4e00\u8bcd\u3002<\/p>\n
fork \u4e00\u8bcd\u5728\u82f1\u6587\u4e2d\u7684\u539f\u610f\u662f\u201c\u53c9\u5b50\u201d\uff0c \u867d\u7136\u7ffb\u8bd1\u6210\u201c\u5206\u53c9\u201d\u3001\u201c\u5206\u652f\u201d\u4f3c\u4e4e\u4e5f\u53ef\u4ee5\uff0c\u4f46\u662f\u524d\u8005\u8f83\u5c11\u7528\u505a\u52a8\u8bcd\uff0c\u540e\u8005\u5219\u548c Branch \u7684\u8bd1\u540d\u91cd\u590d\u6df7\u6dc6\u3002<\/p>\n
\u636e Linux \u4e2d\u56fd\u7ffb\u8bd1\u7ec4\uff08LCTT\uff09\u7684\u8bd1\u8005 dongfengweixiao \u63d0\u8bae\uff0c\u53ef\u8bd1\u4f5c\u201c\u590d\u523b<\/strong>\u201d\uff0c\u6211\u4eec\u8ba4\u4e3a\u8fd9\u662f\u4e00\u4e2a\u53ef\u53d6\u7684\u8bd1\u6cd5\uff0c\u4e00\u65b9\u9762\u7167\u987e\u5230\u4e86\u97f3\u8bd1\uff0c\u53e6\u4e00\u65b9\u9762\u5176\u91ca\u4e49\u4e5f\u5f62\u8c61\u76f4\u89c2\u3002<\/p>\n \u65e2\u7136\u8bf4\u5230\u8fd9\u91cc\uff0c\u987a\u4fbf\u6211\u4eec\u5bf9\u590d\u523b