Create a file named ".gitignore" on the outer most place of your project add the file or folder names you want git to ignore before pushing. Example- node_modules