瀏覽代碼

add git tutorial

Jeremy Zheng 2 月之前
父節點
當前提交
f825af1134
共有 6 個文件被更改,包括 38 次插入1 次删除
  1. 2 0
      .gitignore
  2. 36 1
      README.md
  3. 二進制
      images/git/add-keys/1.png
  4. 二進制
      images/git/add-keys/2.png
  5. 二進制
      images/git/repo-url.png
  6. 二進制
      softwares/windows/Git-2.53.0.2-64-bit.exe

+ 2 - 0
.gitignore

@@ -0,0 +1,2 @@
+/.vscode/
+/tmp/

+ 36 - 1
README.md

@@ -1,2 +1,37 @@
-# tutorial
+# 闲人指路
 
 
+## 创建用户
+
+## 克隆项目
+
+- 下载并安装[git for windows](softwares/windows/Git-2.53.0.2-64-bit.exe)
+- 打开git bash: 右键点击工作目录选择“Git Bash Here”
+- 获得项目地址
+
+  ![Clone by https](images/git/repo-url.png)
+
+### 通过密码(HTTPS)
+
+```bash
+git clone https://git.wikipali.org/iapt-platform/tutorial.git
+```
+
+### 无密码(SSH)
+
+- 创建ssh key
+
+  ```bash
+  mkdir .ssh
+  ssh-keygen -t rsa -f .ssh/id_rsa -b 4096 -C "你的邮箱"
+  ```
+
+- 把`.ssh/id_rsa.pub`内容添加到你的账户
+  ![step 1](images/git/add-keys/1.png)
+  ![step 2](images/git/add-keys/2.png)
+- 克隆项目
+
+  ```bash
+  eval "$(ssh-agent -s)"
+  ssh-add .ssh/id_rsa
+  git clone ssh://git@git.wikipali.org:2222/iapt-platform/tutorial.git
+  ```

二進制
images/git/add-keys/1.png


二進制
images/git/add-keys/2.png


二進制
images/git/repo-url.png


二進制
softwares/windows/Git-2.53.0.2-64-bit.exe