How to fix error: invalid path 'filename.' - trailing dot not allowed on Windows in Git | DevErrors