After git rebase origin/main, the error says cannot rebase, you have unstaged changes.

Something got messed up after I moved from Linux to Windows. After cloning my Learning repo, I couldn’t refresh my local repo for a directory I had in gitignore.

$ git rebase origin/main
error: cannot rebase. You have unstaged changes.
error: Please commit or stash them

There were changes I did not want to keep for a file called