diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-01-03 03:21:57 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-01-03 03:21:57 +0800 |
| commit | a2c86b8d3475b019d330cc1718d73668233908f2 (patch) | |
| tree | da19ade7c40b0c003af49979fc443283b984b47b /setup.ps1 | |
| parent | 9681db6957b40089173f5265e7f1ea2e77af1e50 (diff) | |
Change git pull to fetch and reset in setup scripts
This ensures a clean state by discarding any local changes when updating
the documents repository.
Diffstat (limited to 'setup.ps1')
| -rw-r--r-- | setup.ps1 | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,7 +1,8 @@ # Setup documents repo if (Test-Path "docs/Documents/.git") { Push-Location "docs/Documents" - git pull origin main + git fetch origin main + git reset --hard origin/main Pop-Location } else { git clone https://github.com/JustEnoughVCS/Documents.git docs/Documents |
