This is a Linux 2.6 kernel repository. I git clone it to my local host.
After that. I didn\'t make any change. But when I \"git status\". I found 13 modified files.
If you would like to remove all the files and modifications that differ from your origin branch but would like to keep all the ignored files (ex. node_modules, .vscode, .idea etc..) the best choice is to combine these two commands:
git reset --hard && git clean -f
This will reset all modified files and will clean all the unstaged ones.