Skip to content

Instantly share code, notes, and snippets.

@shah-smit
Last active June 24, 2016 04:11
Show Gist options
  • Save shah-smit/4c4a9f815e5c54f09f93c8c25ef023e9 to your computer and use it in GitHub Desktop.
Save shah-smit/4c4a9f815e5c54f09f93c8c25ef023e9 to your computer and use it in GitHub Desktop.
step by step to generate .gitignore file
# VS / NTVS stuff
*.dat
*.suo
bin
obj
# Logs
logs
*.log
# Runtime data
pids
*.pid
*.seed
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# node-waf configuration
.lock-wscript
# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
# Excluding folder just write the folder name and GIT will ignore complete folder
folderName
# Excluding extact file just write the file name with extension(.js/.ini) and GIT will ignore that file.
filename.extension
something.html

step by step to generate .gitignore file

  • Everthing written in hash(#) is a comment

to generate .gitignore file redirect to repository directory in terminal or command line. and type touch .gitignore

now redirect to .gitignore file through any text-edit software.

I have added .gitignore file below for refrence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment