From 5166cfe9e908235bd74ebd4607e5fe70582c1d84 Mon Sep 17 00:00:00 2001 From: cqh963852 Date: Mon, 10 Feb 2025 11:28:25 +0800 Subject: [PATCH] chore: update todo --- TODO.md | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 TODO.md diff --git a/TODO.md b/TODO.md new file mode 100644 index 0000000..948211d --- /dev/null +++ b/TODO.md @@ -0,0 +1,42 @@ +# 使用 ssh 的方式,克隆代码 + +1. 创建公钥 私钥 +`~/.ssh/some_key` +`~/.ssh/some_key_pub` + +2. 添加公钥到 git 平台 +3. 配置本地 ssh config 文件 + + +文件位置 `~/.ssh/config` +```ssh-config +Host github.com + HostName ssh.github.com + Port 443 + User git + IdentityFile ~/.ssh/some_key +``` + +# 运行本地项目 + +克隆当前项目 + +```shell +git clone git@github.com:idealjs/full-stack-tutorial.git +``` + +```shell +cd full-stack-tutorial +``` + +安装依赖 + +```shell +yarn +``` + +启动项目 +> package.json 中查看 scripts 字段 +```shell +yarn start +```