Add .env file to gitignore and change the credentials to dummy credentials. Update the file and remove its version history. @Milind712000