diff options
| -rw-r--r-- | setup.ps1 | 3 | ||||
| -rwxr-xr-x | setup.sh | 5 |
2 files changed, 6 insertions, 2 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 @@ -1,6 +1,9 @@ # Setup documents repo if [ -d "docs/Documents/.git" ]; then - cd docs/Documents && git pull origin main && cd - + cd docs/Documents + git fetch origin main + git reset --hard origin/main + cd - else git clone https://github.com/JustEnoughVCS/Documents.git docs/Documents fi |
