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
@@ -65,12 +65,13 @@ For other system platforms, please read [dependency installation](https://github
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
git fetch --all
git reset --hard origin/master
git pull
git stash # Stash local Git changes
git fetch --all # Fetch updates
git pull # Pull updates
git stash pop # Apply the local Git changes stash
```
</details>