init-gitignore
: Because making git ignore files should be easier.
Often, you’ll have a class of files that you don’t want Git to automatically add or even show you as being untracked. These are generally automatically generated files such as log files or files produced by your build system. In such cases, you can create a file listing patterns to match them named .gitignore
.
Read more about .gitignore
files on the manual page.
🙊 All .gitignore
templates are from the Github Project: gitignore.
$ npm install init-gitignore
const initGitignore = require('init-gitignore');
initGitignore.macOS();
Result .gitignore
# General
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
...
const initGitignore = require('init-gitignore');
initGitignore.Node();
Result .gitignore
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Runtime data
pids
*.pid
...
<gitignoreNameFromTemplate>()
Create a .gitignore file with git template
Project specific, such as language or framework specific templates.
- Actionscript
- Ada
- Agda
- Android
- AppEngine
- AppceleratorTitanium
- ArchLinuxPackages
- Autotools
- cpp
- c
- CFWheels
- CMake
- cuda
- CakePHP
- ChefCookbook
- Clojure
- CodeIgniter
- CommonLisp
- Composer
- Concrete5
- Coq
- CraftCMS
- d
- dm
- Dart
- Delphi
- Drupal
- EPiServer
- Eagle
- Elisp
- Elixir
- Elm
- Erlang
- ExpressionEngine
- ExtJs
- Fancy
- Finale
- ForceDotCom
- Fortran
- FuelPHP
- gwt
- Gcov
- GitBook
- Go
- Godot
- Gradle
- Grails
- Haskell
- IGORPro
- Idris
- Java
- Jboss
- Jekyll
- Joomla
- Julia
- KiCad
- Kohana
- Kotlin
- LabVIEW
- Laravel
- Leiningen
- LemonStand
- Lilypond
- Lithium
- Lua
- Magento
- Maven
- Mercury
- MetaProgrammingSystem
- Nanoc
- Nim
- Node
- OCaml
- ObjectiveC
- Opa
- OpenCart
- OracleForms
- Packer
- Perl
- Perl6
- Phalcon
- PlayFramework
- Plone
- Prestashop
- Processing
- PureScript
- Python
- Qooxdoo
- Qt
- r
- ros
- Rails
- RhodesRhomobile
- Ruby
- Rust
- SCons
- Sass
- Scala
- Scheme
- Scrivener
- Sdcc
- SeamGen
- SketchUp
- Smalltalk
- Stella
- SugarCRM
- Swift
- Symfony
- SymphonyCMS
- TeX
- Terraform
- Textpattern
- TurboGears2
- Typo3
- Umbraco
- Unity
- UnrealEngine
- vvvv
- VisualStudio
- Waf
- WordPress
- Xojo
- Yeoman
- Yii
- ZendFramework
- Zephir
Global (operating system or editor specific) templates.
- Anjuta
- Ansible
- Archives
- Backup
- Bazaar
- BricxCC
- cvs
- Calabash
- Cloud9
- CodeKit
- DartEditor
- Dreamweaver
- Dropbox
- Eclipse
- EiffelStudio
- Emacs
- Ensime
- Espresso
- FlexBuilder
- gpg
- JDeveloper
- JEnv
- JetBrains
- KDevelop4
- Kate
- Lazarus
- LibreOffice
- Linux
- LyX
- Matlab
- Mercurial
- MicrosoftOffice
- ModelSim
- Momentics
- MonoDevelop
- NetBeans
- Ninja
- NotepadPP
- Otto
- Patch
- Redcar
- Redis
- sbt
- svn
- SlickEdit
- Stata
- SublimeText
- SynopsysVCS
- Tags
- TextMate
- TortoiseGit
- Vagrant
- Vim
- VirtualEnv
- VisualStudioCode
- WebMethods
- Windows
- Xcode
- XilinxISE
- macOS
- init-gitignore-cli: CLI for this module.
- init-pkg-json: 📦 Complex generator of Package.json.
- init-pkg-json-cli: CLI for package.json generator 📦 .
Carlos Abraham |
MIT License © Carlos Abraham