{"id":127,"date":"2019-07-23T20:53:18","date_gmt":"2019-07-23T12:53:18","guid":{"rendered":"http:\/\/vip.fxxkpython.com\/?p=127"},"modified":"2020-07-01T23:45:58","modified_gmt":"2020-07-01T15:45:58","slug":"%e5%8f%b2%e4%b8%8a%e6%9c%80%e6%98%93%e6%87%82%e4%b8%94%e5%8f%af%e6%93%8d%e4%bd%9c%e7%9a%84-git-%e6%95%99%e7%a8%8b-02-%e6%b5%81%e7%a8%8b%e8%b5%b0%e5%ae%8c%e5%90%8e%e5%91%8a%e8%af%89%e4%bd%a0%e6%98%af","status":"publish","type":"post","link":"https:\/\/vip.fxxkpython.com\/?p=127","title":{"rendered":"\u53f2\u4e0a\u6700\u6613\u61c2\u4e14\u53ef\u64cd\u4f5c\u7684 Git \u6559\u7a0b 02 | \u6d41\u7a0b\u8d70\u5b8c\u540e\u544a\u8bc9\u4f60\u662f\u5565\u610f\u601d\uff1a Git \u5230\u5e95\u662f\u5982\u4f55\u5de5\u4f5c\u7684"},"content":{"rendered":"\n<p>\u4e0a\u4e00\u7bc7\u4e3b\u8981\u662f\u8ba9\u4f60\u80fd\u591f\u5148\u5c1d\u8bd5\u4e00\u4e0b Git \uff0c\u8fd8\u6709\u4e00\u4e9b\u5176\u5b83\u7684\u7ecf\u5e38\u7528\u5230\u7684\u64cd\u4f5c\u547d\u4ee4\u6211\u90fd\u4f1a\u8ddf\u4f60\u8bf4\u5230\u7684\uff0c\u53ea\u8981\u4f60\u73b0\u5728\u8ddf\u7740\u6211\u4e00\u6b65\u4e00\u6b65\u6765\u5c31\u884c\uff0c\u8fd9\u4e00\u7bc7\u6211\u4eec\u5148\u6765\u8bf4\u8bf4\uff1a\u4e0a\u4e00\u7bc7\u4f60\u5728\u64cd\u4f5c\u7684\u8fc7\u7a0b\u4e2d\uff0cGit\u90fd\u505a\u4e86\u4e9b\u4ec0\u4e48\u3002<\/p>\n\n\n\n<h3><strong>git init<\/strong><\/h3>\n\n\n\n<p>\u8fd9\u4e2a\u547d\u4ee4\u662f\u521d\u59cb\u5316\u7684\u610f\u601d\uff0c\u5982\u679c\u4f60\u7ec6\u5fc3\u53d1\u73b0\u7684\u8bdd\uff0c\u5f53\u4f60\u4f7f\u7528\u4e86 init \u4e4b\u540e\uff0c\u4f60\u7684\u76ee\u5f55\u4e0b\u4f1a\u751f\u6210\u4e00\u4e2a .git \u6587\u4ef6\u5939\uff0c\u5728\u8fd9\u4e2a\u6587\u4ef6\u5939\u91cc\u9762\u5c31\u662f\u4e13\u95e8\u7528\u6765\u5b58\u653e\u4e00\u4e9b Git \u9700\u8981\u7684\u6570\u636e\u548c\u8d44\u6e90\u7684\u3002\u4e5f\u5c31\u662f\u8bf4\uff0c\u8fd9\u4e2a\u6587\u4ef6\u5c31\u662f git \u7528\u6765\u7ba1\u7406\u4f60\u5f53\u4e0b\u76ee\u5f55\u7684\u6587\u4ef6\uff0c\u5982\u679c\u6ca1\u6709\u4e86\u8fd9\u4e2a .git \u6587\u4ef6\uff0c\u90a3\u4e48\u4f60\u4ec0\u4e48\u4e5f\u505a\u4e0d\u4e86&#8230;<\/p>\n\n\n\n<p>\u5f80\u540e\u6211\u8ddf\u4f60\u8bb2 git clone \u7684\u65f6\u5019\uff0c\u4f60\u4f1a\u53d1\u73b0\u6bcf\u6b21\u5f97\u5230\u7684\u9879\u76ee\u90fd\u4f1a\u6709 .git \u6587\u4ef6\u5939\u5305\u542b\u5728\u9879\u76ee\u91cc\u9762\uff0c\u8ba9\u5b83\u6765\u7ba1\u7406\u8fd9\u4e2a\u9879\u76ee\uff0c\u8fd9\u4e5f\u5c31\u662f\u6240\u8c13\u7684\u5206\u5e03\u5f0f\u3002<\/p>\n\n\n\n<h3 id=\"mce_3\"><strong>git \u7684\u6587\u4ef6\u72b6\u6001<\/strong><\/h3>\n\n\n\n<p>\u4f60\u8fd8\u8bb0\u5f97\u4e0a\u4e00\u7bc7\u4f60\u5728\u4f60\u7684\u6587\u4ef6\u5939\u6dfb\u52a0\u4e86\u4e00\u4e2a\u6587\u4ef6\uff0c\u7136\u540e\u4f7f\u7528 git status \u770b\u72b6\u6001\u7684\u65f6\u5019\uff0c\u5b83\u63d0\u9192\u4f60\u8bf4\uff0c\u8fd9\u4e2a\u6587\u4ef6\u8fd8\u6ca1\u6709\u52a0\u5165 track \u5417\uff1f<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"768\" height=\"208\" src=\"http:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/07\/Screenshot-from-2019-07-22-23-28-17-1.png\" alt=\"\" class=\"wp-image-128\" srcset=\"https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/07\/Screenshot-from-2019-07-22-23-28-17-1.png 768w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/07\/Screenshot-from-2019-07-22-23-28-17-1-300x81.png 300w, https:\/\/vip.fxxkpython.com\/wp-content\/uploads\/2019\/07\/Screenshot-from-2019-07-22-23-28-17-1-640x173.png 640w\" sizes=\"(max-width: 768px) 100vw, 768px\" \/><\/figure>\n\n\n\n<p>\u4f60\u53ef\u4ee5\u628a track \u7406\u89e3\u4e3a\u8ffd\u8e2a\u7684\u610f\u601d\uff0c\u4f60\u53ea\u6709\u5c06\u4f60\u5199\u597d\u7684\u6587\u4ef6 add \u7ed9 git \uff0c\u5b83\u624d\u80fd\u8ffd\u8e2a\u3002Git \u5bf9\u4f60\u7684\u6587\u4ef6\u4f1a\u5212\u5206\u6210\u4e09\u4e2a\u72b6\u6001\uff1a<strong>\u6587\u4ef6\u6682\u5b58\u4e86\u3001\u6587\u4ef6\u4fee\u6539\u4e86\u3001\u6587\u4ef6\u63d0\u4ea4\u4e86\u3002<\/strong><\/p>\n\n\n\n<p>\u6587\u4ef6\u4fee\u6539\u4e86\u8fd9\u4e2a\u72b6\u6001\u5c31\u662f\u8bf4\uff0c\u4f60\u6dfb\u52a0\u4e86\u6587\u4ef6\uff0c\u6216\u8005\u4fee\u6539\u4e86\u6587\u4ef6\uff0c\u4f46\u662f\u4f60\u8fd9\u65f6\u5019\u8fd8\u6ca1\u6709\u63d0\u4ea4\u4fdd\u5b58\u3002\u6211\u4eec\u4e3b\u8981\u6765\u8bf4\u8bf4<div style=\"text-align:center;border:1px dashed #FF9A9A;padding:8px;margin:10px auto;color:#FF6666;\">\u672c\u6587\u9690\u85cf\u5185\u5bb9 <a href=\"https:\/\/vip.fxxkpython.com\/wp-login.php?redirect_to=https%3A%2F%2Fvip.fxxkpython.com%2F%3Fp%3D127\">\u767b\u9646<\/a> \u540e\u624d\u53ef\u4ee5\u6d4f\u89c8<\/div>\u4e0b\u4e00\u7bc7\u4f1a\u7ee7\u7eed\u7ed9\u4f60\u4ecb\u7ecd Git \u7684\u5e38\u7528\u64cd\u4f5c\u547d\u4ee4\uff0c\u6bd4\u5982\u67e5\u770b git \u65e5\u5fd7\uff0c\u5982\u4f55\u6253\u6807\u7b7e\uff0c\u5982\u4f55\u64a4\u9500\u7b49\u9a9a\u64cd\u4f5c\u3002<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0a\u4e00\u7bc7\u4e3b\u8981\u662f\u8ba9\u4f60\u80fd\u591f\u5148\u5c1d\u8bd5\u4e00\u4e0b Git \uff0c\u8fd8\u6709\u4e00\u4e9b\u5176\u5b83\u7684\u7ecf\u5e38\u7528\u5230\u7684\u64cd\u4f5c\u547d\u4ee4\u6211\u90fd\u4f1a\u8ddf\u4f60\u8bf4\u5230\u7684\uff0c\u53ea\u8981\u4f60\u73b0\u5728\u8ddf\u7740\u6211\u4e00\u6b65\u4e00\u6b65\u6765\u5c31\u884c\uff0c\u8fd9\u4e00\u7bc7\u6211\u4eec\u5148\u6765\u8bf4\u8bf4\uff1a\u4e0a\u4e00\u7bc7\u4f60\u5728\u64cd\u4f5c\u7684\u8fc7\u7a0b\u4e2d\uff0cGit\u90fd\u505a\u4e86\u4e9b\u4ec0\u4e48\u3002 git init \u8fd9\u4e2a\u547d\u4ee4\u662f\u521d\u59cb\u5316\u7684\u610f\u601d\uff0c\u5982\u679c\u4f60\u7ec6\u5fc3\u53d1\u73b0\u7684\u8bdd&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[13],"tags":[14,7],"_links":{"self":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/127"}],"collection":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=127"}],"version-history":[{"count":4,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/127\/revisions"}],"predecessor-version":[{"id":5825,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=\/wp\/v2\/posts\/127\/revisions\/5825"}],"wp:attachment":[{"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vip.fxxkpython.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}