Use .gitignore file not to upload unnecessary files and folders on your computer to git repository.
The .gitignore file below helps you not to upload system files and IDE files.
Make .gitignore
file in your git root directory and copy & paste below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | # folders and files to be ignored by git ############ ## node modules ############ node_modules/ ############ ## IDEs ############ *.pydevproject .project .metadata *.swp *~.nib local.properties .classpath .settings/ .loadpath .externalToolBuilders/ *.launch .cproject .buildpath nbproject/ ############ ## OSes ############ [Tt]humbs.db [Dd]esktop.ini *.DS_store .DS_store? ############ ## Misc ############ bin/ tmp/ *.tmp *.bak *.log *.[Cc]ache *.cpr *.orig *.php.in .idea/ temp/ ._* .Trashes .svn *.codekit *.scssc ############ ## Distribute ############ dist/ bundle/ |
You can also get it on Github.
If you like this post, please share it:)