While using windows we get ^M characters in files that will get displayed when you open files on unix machines.
To remove such ^M characters,
Install dos2unix package using
sudo apt-get install sysutils
Convert individual file
dos2unix file_path
Run following command to convert recursively all the files inside directory.
find . -type f -exec dos2unix {} \;
sudo apt-get install sysutils