{"id":21339,"date":"2024-11-19T11:49:28","date_gmt":"2024-11-19T03:49:28","guid":{"rendered":"https:\/\/fwq.ai\/blog\/21339\/"},"modified":"2024-11-19T11:49:28","modified_gmt":"2024-11-19T03:49:28","slug":"vscode%e6%80%8e%e4%b9%88%e6%8f%90%e4%ba%a4git","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/21339\/","title":{"rendered":"vscode\u600e\u4e48\u63d0\u4ea4git"},"content":{"rendered":"<blockquote><p>\n  \u5728 visual studio code (vscode) \u4e2d\u63d0\u4ea4 git \u66f4\u6539\u7684\u6b65\u9aa4\u5305\u62ec\uff1a\u521d\u59cb\u5316 git \u5b58\u50a8\u5e93 (git init)\u5c06\u6587\u4ef6\u6dfb\u52a0\u5230 git (\u6dfb\u52a0\u5230 git)\u64b0\u5199\u63d0\u4ea4\u6d88\u606f\u5e76\u63d0\u4ea4\u66f4\u6539 (\u63d0\u4ea4\u6240\u6709)\uff08\u53ef\u9009\uff09\u5c06\u63d0\u4ea4\u63a8\u9001\u81f3\u8fdc\u7a0b\u5b58\u50a8\u5e93 (\u63a8\u9001)\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202405\/27\/2024052710511916280.jpg\" class=\"aligncenter\" title=\"vscode\u600e\u4e48\u63d0\u4ea4git\u63d2\u56fe\" alt=\"vscode\u600e\u4e48\u63d0\u4ea4git\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u4f7f\u7528 VSCode \u63d0\u4ea4 Git \u66f4\u6539<\/strong><\/p>\n<p>\u5728 VSCode \u4e2d\u4f7f\u7528 Git \u8fdb\u884c\u7248\u672c\u63a7\u5236\u975e\u5e38\u7b80\u5355\uff0c\u4ee5\u4e0b\u6b65\u9aa4\u5c06\u6307\u5bfc\u60a8\u5b8c\u6210\u63d0\u4ea4\u66f4\u6539\u7684\u8fc7\u7a0b\uff1a<\/p>\n<ol>\n<li>\n<p><strong>\u786e\u4fdd\u5df2\u914d\u7f6e Git<\/strong><\/p>\n<ul>\n<li>\u6253\u5f00 VSCode \u5e76\u9009\u62e9\u201c\u7ec8\u7aef\u201d\u9009\u9879\u5361\uff08\u6216\u6309 Ctrl + \u6216 Cmd + \uff09\u3002<\/li>\n<li>\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u521d\u59cb\u5316 Git \u5b58\u50a8\u5e93\uff1a init<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u6dfb\u52a0\u8981\u63d0\u4ea4\u7684\u6587\u4ef6<\/strong><\/p>\n<ul>\n<li>\u5728\u6587\u4ef6\u8d44\u6e90\u7ba1\u7406\u5668\u4e2d\u9009\u62e9\u8981\u63d0\u4ea4\u7684\u6587\u4ef6\u3002<\/li>\n<li>\u53f3\u952e\u5355\u51fb\u6587\u4ef6\u5e76\u9009\u62e9\u201c\u6dfb\u52a0\u5230 Git\u201d\u3002<\/li>\n<li>\u60a8\u8fd8\u53ef\u4ee5\u5728 VSCode \u7684\u6e90\u4ee3\u7801\u63a7\u5236\u90e8\u5206\u624b\u52a8\u6dfb\u52a0\u6587\u4ef6\uff08\u5de6\u4e0b\u65b9\uff09\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u63d0\u4ea4\u66f4\u6539<\/strong><\/p>\n<ul>\n<li>\u5728 VSCode \u7684\u6e90\u4ee3\u7801\u63a7\u5236\u90e8\u5206\uff0c\u8f93\u5165\u63d0\u4ea4\u6d88\u606f\u63cf\u8ff0\u60a8\u7684\u66f4\u6539\u3002<\/li>\n<li>\u5355\u51fb\u201c\u63d0\u4ea4\u6240\u6709\u201d\u6309\u94ae\u3002<\/li>\n<li>VSCode \u5c06\u63d0\u4ea4\u60a8\u7684\u66f4\u6539\u5e76\u5c06\u5176\u5b58\u50a8\u5728\u672c\u5730 Git \u5b58\u50a8\u5e93\u4e2d\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u63a8\u9001\u63d0\u4ea4\u5230\u8fdc\u7a0b\u5b58\u50a8\u5e93\uff08\u53ef\u9009\uff09<\/strong><\/p>\n<ul>\n<li>\n<p>\u5982\u679c\u60a8\u5df2\u5c06\u672c\u5730 Git \u5b58\u50a8\u5e93\u8fde\u63a5\u5230\u8fdc\u7a0b\u5b58\u50a8\u5e93\uff0c\u60a8\u53ef\u4ee5\u8fdb\u4e00\u6b65\u63a8\u9001\u63d0\u4ea4\uff1a<\/p>\n<ul>\n<li>\u5355\u51fb VSCode \u4fa7\u680f\u4e2d\u7684\u201cGit\u201d\u56fe\u6807\u3002<\/li>\n<li>\u9009\u62e9\u201c\u63a8\u9001\u201d\u3002<\/li>\n<li>\u9009\u62e9\u8981\u63a8\u9001\u5230\u7684\u8fdc\u7a0b\u5206\u652f\uff08\u901a\u5e38\u662f main \u6216 master\uff09\u3002<\/li>\n<li>\u5355\u51fb\u201c\u63a8\u9001\u201d\u6309\u94ae\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u63d0\u4ea4\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728 visual studio code (vscode) \u4e2d\u63d0\u4ea4 git \u66f4\u6539\u7684\u6b65\u9aa4\u5305\u62ec\uff1a\u521d\u59cb\u5316 git \u5b58\u50a8\u5e93 (git init)\u5c06\u6587\u4ef6\u6dfb\u52a0\u5230 git (\u6dfb\u52a0\u5230 git)\u64b0\u5199\u63d0\u4ea4\u6d88\u606f\u5e76\u63d0\u4ea4\u66f4\u6539 (\u63d0\u4ea4\u6240\u6709)\uff08\u53ef\u9009\uff09\u5c06\u63d0\u4ea4\u63a8\u9001\u81f3\u8fdc\u7a0b\u5b58\u50a8\u5e93 (\u63a8\u9001) \u5982\u4f55\u4f7f\u7528 VSCode \u63d0\u4ea4 Git \u66f4\u6539 \u5728 VSCode \u4e2d\u4f7f\u7528 Git \u8fdb\u884c\u7248\u672c\u63a7\u5236\u975e\u5e38\u7b80\u5355\uff0c\u4ee5\u4e0b\u6b65\u9aa4\u5c06\u6307\u5bfc\u60a8\u5b8c\u6210\u63d0\u4ea4\u66f4\u6539\u7684\u8fc7\u7a0b\uff1a \u786e\u4fdd\u5df2\u914d\u7f6e Git \u6253\u5f00 VSCode \u5e76\u9009\u62e9\u201c\u7ec8\u7aef\u201d\u9009\u9879\u5361\uff08\u6216\u6309 Ctrl + \u6216 Cmd + \uff09\u3002 \u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u521d\u59cb\u5316 Git \u5b58\u50a8\u5e93\uff1a init \u6dfb\u52a0\u8981\u63d0\u4ea4\u7684\u6587\u4ef6 \u5728\u6587\u4ef6\u8d44\u6e90\u7ba1\u7406\u5668\u4e2d\u9009\u62e9\u8981\u63d0\u4ea4\u7684\u6587\u4ef6\u3002 \u53f3\u952e\u5355\u51fb\u6587\u4ef6\u5e76\u9009\u62e9\u201c\u6dfb\u52a0\u5230 Git\u201d\u3002 \u60a8\u8fd8\u53ef\u4ee5\u5728 VSCode \u7684\u6e90\u4ee3\u7801\u63a7\u5236\u90e8\u5206\u624b\u52a8\u6dfb\u52a0\u6587\u4ef6\uff08\u5de6\u4e0b\u65b9\uff09\u3002 \u63d0\u4ea4\u66f4\u6539 \u5728 VSCode \u7684\u6e90\u4ee3\u7801\u63a7\u5236\u90e8\u5206\uff0c\u8f93\u5165\u63d0\u4ea4\u6d88\u606f\u63cf\u8ff0\u60a8\u7684\u66f4\u6539\u3002 \u5355\u51fb\u201c\u63d0\u4ea4\u6240\u6709\u201d\u6309\u94ae\u3002 VSCode [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-21339","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21339","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=21339"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21339\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=21339"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=21339"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=21339"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}