update upgrade command

This commit is contained in:
JrD
2020-08-17 15:31:12 +08:00
parent c645a58263
commit a6faf5262f
2 changed files with 10 additions and 8 deletions
+5 -4
View File
@@ -61,12 +61,13 @@ python oneforall.py --help
3. **更新** 3. **更新**
❗注意:如果你之前已经克隆了项目运行之前请**备份**自己修改过的文件到项目外的地方(如**config.py**),然后执行以下命令**更新**项目: 执行以下命令**更新**项目(可保存对`/config/setting.py``/config/api.py`的修改)
```bash ```bash
git fetch --all git stash # 暂存本地的修改
git reset --hard origin/master git fetch --all # 拉取项目更新
git pull git pull # 下载覆盖
git stash pop # 释放本地修改
``` ```
</details> </details>
+5 -4
View File
@@ -65,12 +65,13 @@ For other system platforms, please read [dependency installation](https://github
3. **Update** 3. **Update**
❗Note: If you have cloned the project before, please backup modified files (such as **./config**) before updating, then run the following command to **update** project: Run the following command to **update** project ( maintain your updates to `/config/setting.py`and`/config/api.py`):
```bash ```bash
git fetch --all git stash # Stash local Git changes
git reset --hard origin/master git fetch --all # Fetch updates
git pull git pull # Pull updates
git stash pop # Apply the local Git changes stash
``` ```
</details> </details>