{"id":19552,"date":"2024-11-19T10:06:00","date_gmt":"2024-11-19T02:06:00","guid":{"rendered":"https:\/\/fwq.ai\/blog\/19552\/"},"modified":"2024-11-19T10:06:00","modified_gmt":"2024-11-19T02:06:00","slug":"window7%e4%b8%8a%e6%80%8e%e4%b9%88%e6%90%ad%e5%bb%bagitlab%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%88%e6%ad%a5%e9%aa%a4%ef%bc%89","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/19552\/","title":{"rendered":"window7\u4e0a\u600e\u4e48\u642d\u5efagitlab\u670d\u52a1\u5668\uff08\u6b65\u9aa4\uff09"},"content":{"rendered":"<p>\u5982\u4eca\uff0c\u5f00\u53d1\u8005\u4eec\u5728\u4ee3\u7801\u7ba1\u7406\u8fc7\u7a0b\u4e2d\u4f7f\u7528git\u5df2\u7ecf\u6210\u4e3a\u4e00\u79cd\u8d8b\u52bf\uff0c\u800cgitlab\u5219\u662f\u4e00\u4e2a\u8ba9\u4f60\u5728\u81ea\u5df1\u7684\u670d\u52a1\u5668\u4e0a\u642d\u5efagit\u4ed3\u5e93\u7684\u7ba1\u7406\u7cfb\u7edf\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u5c06\u5411\u60a8\u4ecb\u7ecd\u5982\u4f55\u5728windows 7\u4e0a\u642d\u5efagitlab\u670d\u52a1\u5668\u3002<\/p>\n<ol>\n<li>\u4e0b\u8f7d\u548c\u5b89\u88c5Git<\/li>\n<\/ol>\n<p>\u9996\u5148\uff0c\u60a8\u9700\u8981\u4e0b\u8f7d\u5e76\u5b89\u88c5Git\u5ba2\u6237\u7aef\uff1ahttps:\/\/git-scm.com\/downloads\u3002<\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6253\u5f00Git Bash\uff08\u5728Start\u83dc\u5355\u4e2d\u641c\u7d22\uff09\uff0c\u786e\u4fddGit\u5b89\u88c5\u6210\u529f\u3002<\/p>\n<ol>\n<li>\u4e0b\u8f7d\u5e76\u5b89\u88c5Ruby<\/li>\n<\/ol>\n<p>\u6253\u5f00Ruby\u5b98\u65b9\u7f51\u7ad9\uff1ahttps:\/\/rubyinstaller.org\/downloads\/\u3002<\/p>\n<p>\u5728\u4e0b\u8f7d\u9875\u9762\u4e2d\u9009\u62e9RubyInstaller\uff0c\u5e76\u4e0b\u8f7d\u6700\u65b0\u768432\u4f4d\u621664\u4f4d\u7248\u672c\uff0c\u6839\u636e\u60a8\u7684\u7cfb\u7edf\u505a\u51fa\u9009\u62e9\u3002<\/p>\n<p>\u5b89\u88c5Ruby\u540e\uff0c\u5728\u547d\u4ee4\u884c\uff08\u6309Win + R\u6253\u5f00\uff0c\u7136\u540e\u8f93\u5165cmd\uff09\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u6765\u68c0\u67e5\u5b89\u88c5\u7ed3\u679c\uff1a<\/p>\n<pre>ruby -v<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<ol>\n<li>\u5b89\u88c5Node.js<\/li>\n<\/ol>\n<p>\u6253\u5f00Node.js\u5b98\u65b9\u7f51\u7ad9\uff1ahttps:\/\/nodejs.org\/en\/download\/\u3002<\/p>\n<p>\u9009\u62e9Windows Installer\uff0c\u5e76\u4e0b\u8f7d\u6700\u65b0\u768432\u4f4d\u621664\u4f4d\u7248\u672c\uff0c\u6839\u636e\u60a8\u7684\u7cfb\u7edf\u505a\u51fa\u9009\u62e9\u3002<\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u68c0\u67e5\u5b89\u88c5\u7ed3\u679c\uff1a<\/p>\n<pre>node -v<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<ol>\n<li>\u5b89\u88c5GitLab<\/li>\n<\/ol>\n<p>\u4e0b\u8f7dGitLab\u7684\u5b89\u88c5\u5305\uff1ahttps:\/\/about.gitlab.com\/install\/#windows\u3002<\/p>\n<p>\u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u8fd0\u884cexe\u6587\u4ef6\uff0c\u6309\u7167\u63d0\u793a\u4e00\u6b65\u6b65\u5b89\u88c5\u5373\u53ef\u3002\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u9700\u8981\u914d\u7f6eGitLab\u7684\u8bbf\u95ee\u5730\u5740\u548c\u7aef\u53e3\u7b49\u4fe1\u606f\u3002<\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\uff0cGitLab\u5c06\u4f1a\u81ea\u52a8\u542f\u52a8\u3002<\/p>\n<ol>\n<li>\u914d\u7f6eGitLab<\/li>\n<\/ol>\n<p>\u6253\u5f00\u6d4f\u89c8\u5668\uff0c\u8bbf\u95ee\u60a8\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u6307\u5b9a\u7684GitLab\u7684\u8bbf\u95ee\u5730\u5740\u3002\u5728\u7b2c\u4e00\u6b21\u8bbf\u95ee\u65f6\uff0c\u7cfb\u7edf\u5c06\u8981\u6c42\u60a8\u8bbe\u7f6e\u7ba1\u7406\u5458\u8d26\u53f7\u548c\u5bc6\u7801\u3002<\/p>\n<p>\u8bbe\u7f6e\u5b8c\u6210\u540e\uff0c\u60a8\u5c06\u4f1a\u88ab\u91cd\u5b9a\u5411\u5230GitLab\u7684\u4e3b\u754c\u9762\uff0c\u70b9\u51fb\u201cCreate a Project\u201d\uff0c\u521b\u5efa\u60a8\u7684\u7b2c\u4e00\u4e2aGit\u4ed3\u5e93\u3002<\/p>\n<ol>\n<li>\u94fe\u63a5\u60a8\u7684\u4ee3\u7801<\/li>\n<\/ol>\n<p>\u73b0\u5728\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528Git\u5ba2\u6237\u7aef\u5c06\u60a8\u7684\u4ee3\u7801\u4e0a\u4f20\u5230GitLab\u4e2d\u3002<\/p>\n<p>\u9996\u5148\uff0c\u521b\u5efa\u4e00\u4e2a\u7a7a\u7684Git\u4ed3\u5e93\uff0c\u7136\u540e\u4f7f\u7528Git Bash\u8fdb\u5165\u60a8\u7684\u672c\u5730\u9879\u76ee\u76ee\u5f55\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5c06\u672c\u5730\u4ee3\u7801\u5173\u8054\u5230GitLab\uff1a<\/p>\n<pre>git remote add origin [GitLab\u7684\u4ed3\u5e93\u5730\u5740]\ngit push -u origin master<\/pre>\n<p>  \u767b\u5f55\u540e\u590d\u5236   <\/p>\n<p>\u73b0\u5728\uff0c\u60a8\u7684\u4ee3\u7801\u5df2\u7ecf\u4e0a\u4f20\u5230\u4e86\u60a8\u7684\u672c\u5730GitLab\u670d\u52a1\u5668\u4e2d\u3002<\/p>\n<ol>\n<li>\u7ed3\u8bba<\/li>\n<\/ol>\n<p>\u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\uff0c\u6211\u4eec\u770b\u5230\u4e86\u5982\u4f55\u5728Windows 7\u4e0a\u642d\u5efaGitLab\u670d\u52a1\u5668\u3002\u6b65\u9aa4\u867d\u7136\u7e41\u7410\uff0c\u4f46\u662f\u53ea\u9700\u8981\u8010\u5fc3\u5730\u6309\u7167\u6240\u8ff0\u6b65\u9aa4\u4e00\u6b65\u6b65\u6765\u5c31\u80fd\u591f\u8f7b\u677e\u5730\u5b8c\u6210\u642d\u5efa\u3002GitLab\u4e3a\u6211\u4eec\u7684\u4ee3\u7801\u7ba1\u7406\u5de5\u4f5c\u5e26\u6765\u4e86\u5f88\u5927\u7684\u4fbf\u5229\uff0c\u6709\u4e86\u5b83\u7684\u5b58\u5728\uff0c\u6211\u4eec\u5c06\u4f1a\u66f4\u9ad8\u6548\u5730\u8fdb\u884c\u534f\u4f5c\u548c\u5f00\u53d1\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662fwindow7\u4e0a\u600e\u4e48\u642d\u5efagitlab\u670d\u52a1\u5668\uff08\u6b65\u9aa4\uff09\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>\u5982\u4eca\uff0c\u5f00\u53d1\u8005\u4eec\u5728\u4ee3\u7801\u7ba1\u7406\u8fc7\u7a0b\u4e2d\u4f7f\u7528git\u5df2\u7ecf\u6210\u4e3a\u4e00\u79cd\u8d8b\u52bf\uff0c\u800cgitlab\u5219\u662f\u4e00\u4e2a\u8ba9\u4f60\u5728\u81ea\u5df1\u7684\u670d\u52a1\u5668\u4e0a\u642d\u5efagit\u4ed3\u5e93\u7684\u7ba1\u7406\u7cfb\u7edf\u3002\u5728\u672c\u6587\u4e2d\uff0c\u6211\u5c06\u5411\u60a8\u4ecb\u7ecd\u5982\u4f55\u5728windows 7\u4e0a\u642d\u5efagitlab\u670d\u52a1\u5668\u3002 \u4e0b\u8f7d\u548c\u5b89\u88c5Git \u9996\u5148\uff0c\u60a8\u9700\u8981\u4e0b\u8f7d\u5e76\u5b89\u88c5Git\u5ba2\u6237\u7aef\uff1ahttps:\/\/git-scm.com\/downloads\u3002 \u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6253\u5f00Git Bash\uff08\u5728Start\u83dc\u5355\u4e2d\u641c\u7d22\uff09\uff0c\u786e\u4fddGit\u5b89\u88c5\u6210\u529f\u3002 \u4e0b\u8f7d\u5e76\u5b89\u88c5Ruby \u6253\u5f00Ruby\u5b98\u65b9\u7f51\u7ad9\uff1ahttps:\/\/rubyinstaller.org\/downloads\/\u3002 \u5728\u4e0b\u8f7d\u9875\u9762\u4e2d\u9009\u62e9RubyInstaller\uff0c\u5e76\u4e0b\u8f7d\u6700\u65b0\u768432\u4f4d\u621664\u4f4d\u7248\u672c\uff0c\u6839\u636e\u60a8\u7684\u7cfb\u7edf\u505a\u51fa\u9009\u62e9\u3002 \u5b89\u88c5Ruby\u540e\uff0c\u5728\u547d\u4ee4\u884c\uff08\u6309Win + R\u6253\u5f00\uff0c\u7136\u540e\u8f93\u5165cmd\uff09\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u6765\u68c0\u67e5\u5b89\u88c5\u7ed3\u679c\uff1a ruby -v \u767b\u5f55\u540e\u590d\u5236 \u5b89\u88c5Node.js \u6253\u5f00Node.js\u5b98\u65b9\u7f51\u7ad9\uff1ahttps:\/\/nodejs.org\/en\/download\/\u3002 \u9009\u62e9Windows Installer\uff0c\u5e76\u4e0b\u8f7d\u6700\u65b0\u768432\u4f4d\u621664\u4f4d\u7248\u672c\uff0c\u6839\u636e\u60a8\u7684\u7cfb\u7edf\u505a\u51fa\u9009\u62e9\u3002 \u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u5728\u547d\u4ee4\u884c\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u4ee5\u68c0\u67e5\u5b89\u88c5\u7ed3\u679c\uff1a node -v \u767b\u5f55\u540e\u590d\u5236 \u5b89\u88c5GitLab \u4e0b\u8f7dGitLab\u7684\u5b89\u88c5\u5305\uff1ahttps:\/\/about.gitlab.com\/install\/#windows\u3002 \u4e0b\u8f7d\u5b8c\u6210\u540e\uff0c\u8fd0\u884cexe\u6587\u4ef6\uff0c\u6309\u7167\u63d0\u793a\u4e00\u6b65\u6b65\u5b89\u88c5\u5373\u53ef\u3002\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u9700\u8981\u914d\u7f6eGitLab\u7684\u8bbf\u95ee\u5730\u5740\u548c\u7aef\u53e3\u7b49\u4fe1\u606f\u3002 \u5b89\u88c5\u5b8c\u6210\u540e\uff0cGitLab\u5c06\u4f1a\u81ea\u52a8\u542f\u52a8\u3002 \u914d\u7f6eGitLab \u6253\u5f00\u6d4f\u89c8\u5668\uff0c\u8bbf\u95ee\u60a8\u5728\u5b89\u88c5\u8fc7\u7a0b\u4e2d\u6307\u5b9a\u7684GitLab\u7684\u8bbf\u95ee\u5730\u5740\u3002\u5728\u7b2c\u4e00\u6b21\u8bbf\u95ee\u65f6\uff0c\u7cfb\u7edf\u5c06\u8981\u6c42\u60a8\u8bbe\u7f6e\u7ba1\u7406\u5458\u8d26\u53f7\u548c\u5bc6\u7801\u3002 \u8bbe\u7f6e\u5b8c\u6210\u540e\uff0c\u60a8\u5c06\u4f1a\u88ab\u91cd\u5b9a\u5411\u5230GitLab\u7684\u4e3b\u754c\u9762\uff0c\u70b9\u51fb\u201cCreate a Project\u201d\uff0c\u521b\u5efa\u60a8\u7684\u7b2c\u4e00\u4e2aGit\u4ed3\u5e93\u3002 \u94fe\u63a5\u60a8\u7684\u4ee3\u7801 \u73b0\u5728\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528Git\u5ba2\u6237\u7aef\u5c06\u60a8\u7684\u4ee3\u7801\u4e0a\u4f20\u5230GitLab\u4e2d\u3002 \u9996\u5148\uff0c\u521b\u5efa\u4e00\u4e2a\u7a7a\u7684Git\u4ed3\u5e93\uff0c\u7136\u540e\u4f7f\u7528Git Bash\u8fdb\u5165\u60a8\u7684\u672c\u5730\u9879\u76ee\u76ee\u5f55\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5c06\u672c\u5730\u4ee3\u7801\u5173\u8054\u5230GitLab\uff1a git remote add origin [GitLab\u7684\u4ed3\u5e93\u5730\u5740] git push -u origin master \u767b\u5f55\u540e\u590d\u5236 \u73b0\u5728\uff0c\u60a8\u7684\u4ee3\u7801\u5df2\u7ecf\u4e0a\u4f20\u5230\u4e86\u60a8\u7684\u672c\u5730GitLab\u670d\u52a1\u5668\u4e2d\u3002 \u7ed3\u8bba \u901a\u8fc7\u672c\u6587\u7684\u4ecb\u7ecd\uff0c\u6211\u4eec\u770b\u5230\u4e86\u5982\u4f55\u5728Windows 7\u4e0a\u642d\u5efaGitLab\u670d\u52a1\u5668\u3002\u6b65\u9aa4\u867d\u7136\u7e41\u7410\uff0c\u4f46\u662f\u53ea\u9700\u8981\u8010\u5fc3\u5730\u6309\u7167\u6240\u8ff0\u6b65\u9aa4\u4e00\u6b65\u6b65\u6765\u5c31\u80fd\u591f\u8f7b\u677e\u5730\u5b8c\u6210\u642d\u5efa\u3002GitLab\u4e3a\u6211\u4eec\u7684\u4ee3\u7801\u7ba1\u7406\u5de5\u4f5c\u5e26\u6765\u4e86\u5f88\u5927\u7684\u4fbf\u5229\uff0c\u6709\u4e86\u5b83\u7684\u5b58\u5728\uff0c\u6211\u4eec\u5c06\u4f1a\u66f4\u9ad8\u6548\u5730\u8fdb\u884c\u534f\u4f5c\u548c\u5f00\u53d1\u3002 \u4ee5\u4e0a\u5c31\u662fwindow7\u4e0a\u600e\u4e48\u642d\u5efagitlab\u670d\u52a1\u5668\uff08\u6b65\u9aa4\uff09\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/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-19552","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/19552","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=19552"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/19552\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=19552"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=19552"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=19552"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}