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

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
T
Threatpost
Latest news
Latest news
N
News | PayPal Newsroom
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Help Net Security
Help Net Security
D
Darknet – Hacking Tools, Hacker News & Cyber Security
AI
AI
Simon Willison's Weblog
Simon Willison's Weblog
TaoSecurity Blog
TaoSecurity Blog
The Last Watchdog
The Last Watchdog
L
LINUX DO - 热门话题
Google DeepMind News
Google DeepMind News
T
Threat Research - Cisco Blogs
O
OpenAI News
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
The Exploit Database - CXSecurity.com
NISL@THU
NISL@THU
Application and Cybersecurity Blog
Application and Cybersecurity Blog
S
Securelist
小众软件
小众软件
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Martin Fowler
Martin Fowler
S
SegmentFault 最新的问题
Cisco Talos Blog
Cisco Talos Blog
云风的 BLOG
云风的 BLOG
AWS News Blog
AWS News Blog
GbyAI
GbyAI
N
News and Events Feed by Topic
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
美团技术团队
Engineering at Meta
Engineering at Meta
A
About on SuperTechFans
博客园 - 三生石上(FineUI控件)
S
Schneier on Security
博客园 - 聂微东
V2EX - 技术
V2EX - 技术
T
Troy Hunt's Blog
SecWiki News
SecWiki News
S
Secure Thoughts
B
Blog RSS Feed
Hugging Face - Blog
Hugging Face - Blog
WordPress大学
WordPress大学
腾讯CDC
H
Heimdal Security Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Apple Machine Learning Research
Apple Machine Learning Research
月光博客
月光博客
www.infosecurity-magazine.com
www.infosecurity-magazine.com
P
Privacy International News Feed

博客园 - 卡车司机

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/