Skip to content

Commit

Permalink
docs: 服务器安装Git克隆仓库
Browse files Browse the repository at this point in the history
  • Loading branch information
tomiaa12 committed Jan 5, 2024
1 parent d22ecf6 commit 5165397
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/.vitepress/catalog/Serve.ts
Expand Up @@ -12,7 +12,8 @@ export const Server = [
{ text: "部署 nodejs 项目", link: "/docs/服务端/部署/部署nodejs项目" },
{ text: "服务器迁移", link: "/docs/服务端/部署/服务器迁移" },
{ text: "服务器文件压缩备份下载", link: "/docs/服务端/部署/服务器文件压缩备份下载" },
{ text: "npm命令一键部署至服务器", link: "/docs/服务端/部署/npm命令一键部署至服务器" },
{ text: "npm 命令一键部署至服务器", link: "/docs/服务端/部署/npm命令一键部署至服务器" },
{ text: "服务器安装 Git 克隆仓库", link: "/docs/服务端/部署/服务器安装Git克隆仓库" },
],
},
{
Expand Down
25 changes: 25 additions & 0 deletions src/docs/服务端/部署/服务器安装Git克隆仓库.md
@@ -0,0 +1,25 @@
# 服务器安装 Git 克隆仓库

- Ubuntu/Debian

在 Ubuntu 或 Debian 上,你可以使用 apt 包管理器来安装 Git。打开终端并运行以下命令:

```sh
sudo apt update
sudo apt install git
```

- CentOS/RHEL

如果你在 CentOS 或 RHEL 上,可以使用 yum 包管理器:

```sh
sudo yum install git
```


- 验证安装是否成功

```sh
git --version
```

0 comments on commit 5165397

Please sign in to comment.