Create .gitignore file Inside the server directory in the root directory , check if a file named ".gitignore" is available If not , create the file inside the server directory Include the content node_modules/ to the “.gitignore” file