How to fix error: the following file has local modifications: file.txt in Git | DevErrors