Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ca8faf6

Browse files
committed
Add git repository init step.
1 parent b266e89 commit ca8faf6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

‎docs/others/vitepress/getting-started.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@
88
project_name='code-snippets' # 假定项目名称是 code-snippets
99

1010
mkdir $project_name && cd $project_name # 创建并更改为新目录
11+
12+
git init # 初始化git仓库
13+
14+
# 添加忽略目录到 .gitignore 文件
15+
echo 'node_modules/
16+
docs/.vitepress/dist/
17+
docs/.vitepress/cache/' > .gitignore
1118
```
1219

1320
然后,使用 [yarn](https://yarnpkg.com/) 包管理器进行初始化。

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /