Skip to content

Commit

Permalink
Clean git old files
Browse files Browse the repository at this point in the history
git reset might pull changes which untracked files. Gti clean makes sure to remove files that were removed with `git rm`
  • Loading branch information
minottic committed Oct 2, 2024
1 parent d872ac1 commit fd9e15f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions entrypoints/setup_git.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ then
git fetch
DEFAULT_BRANCH=$(git remote show origin | sed -n '/HEAD branch/s/.*: //p')
git reset --hard origin/"${DEFAULT_BRANCH}"
git clean -fd
fi
if [ -n "${TAG}" ] && [ "${TAG}" != "$(git describe --tags)" ]
then
Expand Down

0 comments on commit fd9e15f

Please sign in to comment.