I am trying to automate deployment of my project using Github Actions. The workflow is something like this:
git stash
git stash drop
git pull
# install dependencies and ...
When first two lines are executed, git cannot find any local change:
out: No local changes to save
err: No stash entries found.
But then after git pull
runs, this happens:
err: From https://github.com/*****/*****
err: * branch main -> FETCH_HEAD
err: ****..**** main -> origin/main
err: error: The following untracked working tree files would be overwritten by merge:
err: thefile
err: Please move or remove them before you merge.
err: Aborting
Why is it happening?