Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
L
loit-initproject-doc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
loit-Infrastructure-doc
loit-initproject-doc
Commits
af5e1730
提交
af5e1730
authored
1月 19, 2020
作者:
Administrator
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Initial commit
上级
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
72 行增加
和
0 行删除
+72
-0
Docker Compose gitlab 免密登录.md
Docker Compose gitlab 免密登录.md
+41
-0
README.md
README.md
+31
-0
没有找到文件。
Docker Compose gitlab 免密登录.md
0 → 100644
浏览文件 @
af5e1730
### 生成 SSH KEY
使用 ssh-keygen 工具生成,位置在 Git 安装目录下,我的是
`C:\Program Files\Git\usr\bin`
输入命令:
```
ssh-keygen -t rsa -C "512889371@qq.com"
```
执行成功后的效果:
```
Generating public/private rsa key pair.
Enter file in which to save the key (/c/Users/nick/.ssh/id_rsa):
/c/Users/nick/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/nick/.ssh/id_rsa.
Your public key has been saved in /c/Users/nick/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:D4iujDj1OSzQD1wnIR8awwvQPyPwp1EfOpLB+yts2SM 512889371@qq.com
The key's randomart image is:
+---[RSA 3072]----+
|o+ |
|o O + . |
| + & = . |
| X @.o. |
| o O.*. S |
|. *.. o |
| + B.o . |
|ooE.X |
|ooo+ o |
+----[SHA256]-----+
```
### 复制 SSH-KEY 信息到 GitHub
秘钥位置在:C:
\U
sers
\你
的用户名
\.
ssh 目录下,找到 id_rsa.pub 并使用编辑器打开并拷贝
README.md
0 → 100644
浏览文件 @
af5e1730
```
命令行指令
Git 全局设置
git config --global user.name "mm"
git config --global user.email "nn@qq.com"
创建新版本库
git clone ssh://git@39.100.254.140:12222/loit-Infrastructure-doc/loit-initproject-doc.git
cd loit-initproject-doc
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master
已存在的文件夹
cd existing_folder
git init
git remote add origin ssh://git@39.100.254.140:12222/loit-Infrastructure-doc/loit-initproject-doc.git
git add .
git commit -m "Initial commit"
git push -u origin master
已存在的 Git 版本库
cd existing_repo
git remote rename origin old-origin
git remote add origin ssh://git@39.100.254.140:12222/loit-Infrastructure-doc/loit-initproject-doc.git
git push -u origin --all
git push -u origin --tags
```
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论