惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
Stack Overflow Blog
Stack Overflow Blog
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
T
The Blog of Author Tim Ferriss
博客园 - 叶小钗
N
Netflix TechBlog - Medium
腾讯CDC
C
Check Point Blog
P
Proofpoint News Feed
Engineering at Meta
Engineering at Meta
GbyAI
GbyAI
S
SegmentFault 最新的问题
F
Fortinet All Blogs
美团技术团队
U
Unit 42
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
博客园 - 司徒正美
F
Full Disclosure
Recorded Future
Recorded Future
D
DataBreaches.Net
博客园 - 【当耐特】
Martin Fowler
Martin Fowler
J
Java Code Geeks
I
InfoQ
Y
Y Combinator Blog
A
About on SuperTechFans
AI
AI
爱范儿
爱范儿
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Forbes - Security
Forbes - Security
W
WeLiveSecurity
M
MIT News - Artificial intelligence
雷峰网
雷峰网
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
Simon Willison's Weblog
Simon Willison's Weblog
Schneier on Security
Schneier on Security
The GitHub Blog
The GitHub Blog
Security Archives - TechRepublic
Security Archives - TechRepublic
aimingoo的专栏
aimingoo的专栏
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
G
GRAHAM CLULEY
Know Your Adversary
Know Your Adversary
Latest news
Latest news
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
D
Docker
Recent Commits to openclaw:main
Recent Commits to openclaw:main
量子位
V2EX - 技术
V2EX - 技术
Project Zero
Project Zero

博客园 - 卡车司机

macOS系统下修改hosts文件,安装homebrew & nvm How to see log files in MySQL? git 设置和取消代理 使用本地下载和管理的免费 Windows 10 虚拟机测试 IE11 和旧版 Microsoft Edge 在Microsoft SQL SERVER Management Studio下如何完整输出NVARCHAR(MAX)字段或变量的内容 windows 10 x64系统下在vmware workstation pro 15安装macOS 10.15 Catelina, 并设置分辨率为3840x2160 在Windows 10系统下将Git项目签出到磁盘分区根目录的方法 windows 10 专业版安装VMware虚拟机碰到的坑 PDF.js实现个性化PDF渲染(文本复制) Java平台下利用aspose转word为PDF实现文档在线预览 Razor Page Library:开发独立通用RPL(内嵌wwwroot资源文件夹) 杂记 Code First Migrations in Team Environments SQL Server UPDATE JOIN visual studio 使用正则表达式实现代码批量查找和替换 AngularJs - Calling Directive Method from Controller Entity Framework Power Tools 执行数据库反向工程时报错.... SVN-无法查看log,提示Want to go offline,时间显示1970问题 windows server安装dotnet-sdk-2.2.108-win-x64.exe时报dll找不到
群晖NAS(Synology NAS)环境下安装GitLab, 并在Windows 10环境下使用Git
卡车司机 · 2020-04-09 · via 博客园 - 卡车司机

2020-04-09 14:57  卡车司机  阅读(4248)  评论()    收藏  举报

一. 安装GitLab

略...

二. 生成RSA SSH Keys

在你的windows 10机器上, 打开命令提示符窗口, 输入以下代码, 其中的email地址需要替换成你自己的

ssh-keygen -t rsa -b 2048 -C "email@example.com"

三. 复制刚才生成的Key到你的剪贴板

在你的windows 10机器上, 打开Git Bash窗口, 输入以下代码, 注意路径分割符需要写成"/"不能是"\"

cat c:/users/你的用户名/.ssh/id_rsa.pub | clip

执行好这一步之后, 你的公钥已经复制到你的剪贴板, 下一步需要将你的公钥配置到GitLab

四. 将公钥配置到GitLab

  1. 在浏览器中登录GitLab,点击页面右上角帐户图标中的Settings
  2. 点击SSH Keys
  3. 粘贴公钥到Key输入框
  4. 在Title输入框中输入描述当前Key身份的信息,以便你日后容易识别
  5. 点击Add Key按钮

五. 在GitLab中创建项目

在浏览器中登录GitLab, 点击New Project按钮, 输入项目名称和项目路径, 输入项目描述信息, 根据实际需要选择相应的可见性级别, 然后点击Create project按钮.

六. 签出项目

在你的windows 10机器上, 打开命令提示符, 转到相应目录, 输入git clone ssh://git@gitlab.mydomain.com:30001/root/myproject.git, 执行完成之后即可将项目签出到当前目录.

参考文档:

  1. gitlab文档 https://docs.gitlab.com/ee/ssh/