|
@@ -16,7 +16,7 @@ ssh-keygen -C '用户名'; #生成密钥
|
|
|
cat ~/.ssh/id_rsa.pub #看密钥并复制密钥粘贴至--gogs-->用户设置---ssh密钥--增加密钥 完成后保存退出。
|
|
|
```
|
|
|
|
|
|
-#### 3 克隆当前仓库
|
|
|
+##### 3 克隆当前仓库
|
|
|
|
|
|
```
|
|
|
touch README.md
|
|
@@ -28,7 +28,7 @@ git push origin master --force
|
|
|
# --force 表示强制本地覆盖线上
|
|
|
```
|
|
|
|
|
|
-#### 4 从命令行推送已经创建的仓库
|
|
|
+##### 4 从命令行推送已经创建的仓库
|
|
|
|
|
|
```
|
|
|
git remote add origin root@git.mintelcn.com:Minte-development/Test-project.git
|
|
@@ -36,4 +36,4 @@ git push origin master --force
|
|
|
# --force 表示强制本地覆盖线上
|
|
|
```
|
|
|
|
|
|
-##### [更多帮助请参考:GIT](https://git-scm.com/book/zh/v2)
|
|
|
+##### [更多帮助请移步:GIT官网](https://git-scm.com/book/zh/v2)
|