demo/README.md

67 lines
2.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# DKFile Source Git · 演示仓库
本仓库是 [DKFile Source Git](https://git.dkfile.net/) 的**公开演示仓**,用来放:
1. **DKFile / Source Git 是干什么的**(一句话:改坏也能回退)
2. **零基础 Git 使用说明**(克隆 → 提交 → 推送 → 回退)
正式写业务代码时,请登录后**新建自己的私有仓库**,不要往本演示仓乱推敏感内容。
---
## DKFile 是什么
[DKFile](https://dkfile.net/) 是文件与页面托管相关的产品;**Source Git**`git.dkfile.net`)是配套的源码托管:
| 能力 | 说明 |
|------|------|
| 版本回退 | 每次 `commit` 都有记录,改坏了可以回到以前的版本 |
| 多设备同步 | 任意电脑 `git pull` 拉最新;改完 `git push` 上传 |
| VIP 登录 | VIP 可用 DKFile 账号在本站一键登录 |
- 官网https://dkfile.net/
- VIPhttps://dkfile.net/vip
- Source Githttps://git.dkfile.net/
开通与登录说明见站点首页;个别情况可联系 **IDO老徐**
---
## 5 分钟上手(口诀)
**改完要 push上传→ 换电脑要 pull下载→ 改坏了就回退。**
```bash
# 1本机安装 Git 后,配置一次身份
git config --global user.name "你的名字"
git config --global user.email "你的邮箱"
# 2克隆示例本演示仓
git clone https://git.dkfile.net/dkfile/demo.git
cd demo
# 3日常
git pull
# …改文件…
git add .
git status
git commit -m "说明本次改了什么"
git push
```
HTTPS 推送时,用户名用本站 Git 账号;密码建议用:**设置 → 应用 → 生成 Access Token**。
更完整的步骤见:[Git 基础使用说明](./GIT.md)。
---
## 本仓库文件
| 文件 | 说明 |
|------|------|
| [README.md](./README.md) | 本页:介绍 + 快速上手 |
| [GIT.md](./GIT.md) | 零基础教程:建仓、克隆、提交、多机同步、回退 |
| [ABOUT-DKFILE.md](./ABOUT-DKFILE.md) | DKFile / Source Git 简介与链接 |
欢迎 VIP 用户按教程建自己的私有仓练手。有问题联系 **IDO老徐**