I have a few branches that I want to switch between. The problem I have is there are some changes right away after I switched to that branch due to the line ending problems.
I tried git reset --hard
and git clean -f -d
before git checkout new_branch
but they do not work since files are still in modify state. How can I fix this issue?
It isn't duplicate with git: undo all working dir changes including new files since the answers there doesn't work for me. :(