# See https://help.github.com/ignore-files/ for more about ignoring files. node_modules/ # The above is the MOST EFFECTIVE ONE as per # https://stackoverflow.com/a/1470664/1902852 # The way to ignore all directories called "node_modules" # anywhere below the current level in a directory tree # Further if I have already pushed a directory to remote then remove that with below # Execute a folder remove (rm) from index only (--cached) recursivelly (-r). Command line example for root bin folder: # `git rm -r --cached full_absolute_path` # e.g. I had to run the below kind of command to remove the ".next" folder that was pushed to remote github # passing the full path of the .next folder # git rm -r --cached /media/veracrypt2/014-agency-classic-next/.next *node_modules /*node_modules */*node_modules **/*node_modules /node_modules /node_modules/* */node_modules/* # If you have performed a task, such as adding a new line item to your .gitignore file, I MUST need to clear out your git repo's cache in order for the changes to take place. Here are the commands for doing that: # git rm -r --cached . && git add . && git commit -am 'git cache cleared' && git push __MACOSX/ *__MACOSX /*__MACOSX */*__MACOSX **/*__MACOSX /__MACOSX /__MACOSX/* */__MACOSX/* .next/ *.next /*.next */*.next **/*.next /.next /.next/* */.next/* .npy/ *.npy /*.npy */*.npy **/*.npy /.npy # testing coverage/ *coverage /*coverage */*coverage **/*coverage /coverage /coverage/* */coverage/* # production build/ *build /*build */*build **/*build /build /build/* */build/* .db/ *.db /*.db */*.db **/*.db /.db .pkl/ *.pkl /*.pkl */*.pkl **/*.pkl /.pkl .pyc/ *.pyc /*.pyc */*.pyc **/*.pyc /.pyc *.txt /*.txt */*.txt **/*.txt /.txt *.csv /*.csv */*.csv **/*.csv /.csv *glove_vectors /glove_vectors */*glove_vectors **/*glove_vectors /glove_vectors *.zip /*.zip */*.zip **/*.zip /.zip *.rar /*.rar */*.rar **/*.rar /.rar *.7z /*.7z */*.7z **/*.7z /.7z LARGE_Datasets */LARGE_Datasets */LARGE_Datasets/** **/LARGE_Datasets/** # *** END OF FILES SPECIFIC TO ML Projects **** # testing /coverage # production /build # misc .DS_Store .env.local .env.development.local .env.test.local .env.production.local npm-debug.log* yarn-debug.log* yarn-error.log* # Ignore docs files _gh_pages .ruby-version # Numerous always-ignore extensions *.diff *.err *.orig *.log *.rej *.swo *.swp *.zip *.vi *~ *.~lock* .~lock* # OS or Editor folders .DS_Store ._* Thumbs.db .cache .project .settings .tmproj *.esproj nbproject *.sublime-project *.sublime-workspace .idea # Komodo *.komodoproject .komodotools # grunt-html-validation validation-status.json validation-report.json # Folders to ignore node_modules Project-Note-PAUL .vscode # Ignore all logfiles and tempfiles. !/log/.keep /tmp /.gems CountDownTimer-Note.odt random-code-1.js random-code-2.js random-code-3.js performance-1.js #ignore file name ending in "-bkp.js" OR "-bkp.ts" OR "-bkp.py" or "-test.js" OR "-test.ts" in its name. So I will have to put "-test.js" at all files that is just for my development-time random testing code . **/*-bkp.js **/*-bkp.ts **/*-bkp.py **/*-test.js **/*-test.ts **/*-test.py **/*-test.ipynb **/*-test.md **/*-test.json