diff --git a/src/.vuepress/public/assets/image/cloud-native/git-menu.png b/src/.vuepress/public/assets/image/cloud-native/git-menu.png new file mode 100644 index 000000000..003b57665 Binary files /dev/null and b/src/.vuepress/public/assets/image/cloud-native/git-menu.png differ diff --git a/src/.vuepress/theme.ts b/src/.vuepress/theme.ts index 84b8d50e1..4dbaee344 100644 --- a/src/.vuepress/theme.ts +++ b/src/.vuepress/theme.ts @@ -169,6 +169,7 @@ export default hopeTheme({ contributors: false, updatedTime: true, createdTime: true - } + }, + search: true }, }); diff --git "a/src/cloud-native/git\345\210\235\345\247\213\345\214\226.md" "b/src/cloud-native/git\345\210\235\345\247\213\345\214\226.md" index 7d22e939e..d97f04f35 100644 --- "a/src/cloud-native/git\345\210\235\345\247\213\345\214\226.md" +++ "b/src/cloud-native/git\345\210\235\345\247\213\345\214\226.md" @@ -12,6 +12,10 @@ git config --global user.email "email@example.com" ## 配置Git存储库SSH密钥 +右击桌面,选择 **Git Bash Here**,打开Git Bash命令行窗口执行以下命令 + +![](/assets/image/cloud-native/git-menu.png) + ```bash title="进入ssh目录" cd ~/.ssh ``` @@ -19,6 +23,7 @@ cd ~/.ssh ```bash title="列出ssh目录下的文件" ls ``` + 确定是否存在`id_rsa`和`id_rsa.pub`文件 如果不存在 @@ -35,4 +40,4 @@ cat id_rsa.pub ```bash title="测试是否配置成功" ssh -T git@github.com -``` \ No newline at end of file +```