Skip to content

Commit 6fb054f

Browse files
committed
reset git
1 parent 78b8938 commit 6fb054f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Linux/install_ix.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@
7878
#Reset/Clone Repo
7979
if [[ -d "${HOME}/ix/.git" ]]; then
8080
git -C "${HOME}/ix/" reset --hard
81+
git -C "${HOME}/ix/" fetch --all
82+
git -C "${HOME}/ix/" reset --hard "origin/$(git -C "${HOME}/ix/" rev-parse --abbrev-ref 'HEAD')"
8183
else
8284
git clone --depth="1" --filter="blob:none" --quiet "${GIT_REPO:-https://github.com/stal-ix/ix}"
8385
fi

0 commit comments

Comments
 (0)