chore: use 'git checkout -f' instead of 'git reset --hard' to avoid loss
This commit is contained in:
parent
8f02bd1509
commit
b0499a62aa
@ -3,7 +3,7 @@
|
|||||||
echo Updating SpaceNinjaServer...
|
echo Updating SpaceNinjaServer...
|
||||||
git fetch --prune
|
git fetch --prune
|
||||||
git stash
|
git stash
|
||||||
git reset --hard origin/main
|
git checkout -f origin/main
|
||||||
|
|
||||||
if exist static\data\0\ (
|
if exist static\data\0\ (
|
||||||
echo Updating stripped assets...
|
echo Updating stripped assets...
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
echo "Updating SpaceNinjaServer..."
|
echo "Updating SpaceNinjaServer..."
|
||||||
git fetch --prune
|
git fetch --prune
|
||||||
git stash
|
git stash
|
||||||
git reset --hard origin/main
|
git checkout -f origin/main
|
||||||
|
|
||||||
if [ -d "static/data/0/" ]; then
|
if [ -d "static/data/0/" ]; then
|
||||||
echo "Updating stripped assets..."
|
echo "Updating stripped assets..."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user