Joe Blau da86c70b62 Updated master template list - Fixes #237
WIP

WIP

Updated pages

Adding directory walker

WIP

Added API endpoints

Add gitignore for Cake

Updated master template list

Updated master template list

Remove comment, since it will be added automatically by webservice

Updated master template list

Create ApacheCordova.gitignore

Updated master template list

Update Intellij.patch

Remove tail whitespace

Updated master template list

Remove trailing spaces

Remove trailing spaces to be diffabel with most editors

Updated master template list

Minor reformatting of docs

Fixed landing page dropdown

Feature parity with node version

Linted project

Fixed misspellings

Updated file init API

Added Travis CI file

Updated to swift 3.0.1

Add linter

Removed swiftlint

Fixed permissions on swift lint

Removed os

Updated travis file with OS and language

Updated Procfile

Reverted Procfile

Updated travis file

Updated travis script

Updated package

Updated eval script

Add force dependency update

Switched to lint

Added basic tests

Moved swift lint back to working dir

Fixed typo

Fixed unit tests

Removed swiftlint

Testing vapor/vapor build

Reverted travis files

Renamed server target and test target

Updated test target imports

Use default vapor ci script

Remove redundnat build commands

Use vapor code cov

100% test coverage

Fixed linux test main file names

Adding debug statements

Fixed test case file name

Moved all files to uppercase Public

Move all files from public to Public to fix case-sensitivity issues (#268)

Fix readme headers

Fixed last H2

Updated master template list

Remove print strings

Updated procfile

Fixed Procfile

Updated data directory

Updated vapor buildpack and procfile

Updated gitignore

Added Swift Version

Test with differnet path serach function

Set to development env

Testing with subpathsOfDirectory

added debugPrint

Add debugging for file type attributes

Fixed negation

Test with traversed relative links

Trying to simplify file paths

Testing symlink code

More debug statements

Print FileAttributeKey.type key

Try negation

Debugging

Debugging

Redo file name extractor

Debugging more

Code cleanup

Testing travis deploy

Fixed test case

Fix email and skip cleanup

CI testing

Updated to swift 3.0.2

Update readme

Updated skip cleanup

Try deploy from heroku

Update ci script

Teset full deploy

Updated master template list

Fixes #271

Add fzf-gitignore and helm-gitignore to extension list (#272)

Ignore test files (#274)

* Ignore test files

* From custom to classes

Update data/gitignore (#275)

Remove non-existing plugin-dirs (#276)

Both `/internal/` as well as `/engine/Shopware/Plugins/Commercial/` don't exist in a default Shopware-installation at all.

Add support for QML language (#278)

Updated master template list

Updated build test
2017-01-28 14:03:41 -05:00
2016-10-20 17:02:52 -04:00


Create useful .gitignore files for your project

Travis Codecov codebeat badge Bower Platforms license

Install Command Line

To run gitignore.io from your command line you need an active internet connection and an environment function. You need to add a function to your environment that lets you access the gitignore.io API.

Git

#!/bin/bash

$ git config --global alias.ignore '!gi() { curl -L -s https://www.gitignore.io/api/$@ ;}; gi'

Linux

#!/bin/bash

$ echo "function gi() { curl -L -s https://www.gitignore.io/api/\$@ ;}" >> ~/.bashrc && source ~/.bashrc

#!/bin/zsh

$ echo "function gi() { curl -L -s https://www.gitignore.io/api/\$@ ;}" >> ~/.zshrc && source ~/.zshrc

macOS

#!/bin/bash

$ echo "function gi() { curl -L -s https://www.gitignore.io/api/\$@ ;}" >> ~/.bash_profile && source ~/.bash_profile

#!/bin/zsh

$ echo "function gi() { curl -L -s https://www.gitignore.io/api/\$@ ;}" >> ~/.zshrc && source ~/.zshrc

Windows

Create a PowerShell v3 Script

#For PowerShell v3
Function gig {
  param(
    [Parameter(Mandatory=$true)]
    [string[]]$list
  )
  $params = $list -join ","
  Invoke-WebRequest -Uri "https://www.gitignore.io/api/$params" | select -ExpandProperty content | Out-File -FilePath $(Join-Path -path $pwd -ChildPath ".gitignore") -Encoding ascii
}

Create a PowerShell v2 Script

#For PowerShell v2
Function gig {
  param(
    [Parameter(Mandatory=$true)]
    [string[]]$list
  )
  $params = $list -join ","
  $wc = New-Object System.Net.WebClient
  $wc.Headers["User-Agent"] = "PowerShell/" + $PSVersionTable["PSVersion"].ToString()
  $wc.DownloadFile("https://www.gitignore.io/api/$params", "$PWD\.gitignore")
}

Create a Command Line Prompt Script If you have installed msysgit), create gi.cmd with content below. And copy it to C:\Program Files\Git\cmd\gi.cmd, assuming msysgit was installed to c:\Program Files\Git. Make sure that C:\Program Files\Git\cmd is added to the environment variable path.

@rem Do not use "echo off" to not affect any child calls.
@setlocal

@rem Get the abolute path to the parent directory, which is assumed to be the
@rem Git installation root.
@for /F "delims=" %%I in ("%~dp0..") do @set git_install_root=%%~fI
@set PATH=%git_install_root%\bin;%git_install_root%\mingw\bin;%PATH%

@if not exist "%HOME%" @set HOME=%HOMEDRIVE%%HOMEPATH%
@if not exist "%HOME%" @set HOME=%USERPROFILE%

@curl.exe -L -s https://www.gitignore.io/api/%*

Other Clients

Clients maintained by third-party developers

Source Code Language Instructions Maintainer
gogi Go Install Cuong Manh Le
ignr Python Usage Antriksh Yadav

Tools or extensions maintained by third-party developers on other platforms

Source Code Platform Instructions Maintainer
fzf-gitignore Neovim Install Filip Szymański
gi Visual Studio Code Install Hasit Mistry
helm-gitignore GNU Emacs Install Juan Placencia

Use Command Line

After the function is created, the gi command will give you command line access to the gitingore.io API. . Note: Use gig if you are on Windows

Preview

Show output on the command line. Note: Use gig if you are on Windows

$ gi linux,java
# Created by https://www.gitignore.io

### Linux ###
.*
!.gitignore
*~

### Java ###
*.class
# Package Files #
*.jar
*.war
*.ear

Global

Append Operating System and IDE settings to global .gitignore. Note: Use gig if you are on Windows

$ gi linux,eclipse >> ~/.gitignore_global

Project

Appending Programming Langauge settings to your projects .gitignore. Note: Use gig if you are on Windows

$ gi java,python >> .gitignore

List

List displays a list of all of the currently support gitignore.io templates. Note: Use gig if you are on Windows

$ gi list
actionscript,ada,agda,android,appceleratortitanium,appcode,archives,
archlinuxpackages,autotools,bancha,basercms,bower,bricxcc,c,c++,cakephp,
cfwheels,chefcookbook,clojure,cloud9,cmake,codeigniter,codekit,commonlisp,
compass,composer,concrete5,coq,cvs,dart,darteditor,delphi,django,dotsettings,
dreamweaver,drupal,eagle,eclipse,elasticbeanstalk,elisp,elixir,emacs,ensime,
episerver,erlang,espresso,expressionengine,fancy,finale,flexbuilder,forcedotcom,
freepascal,fuelphp,gcov,go,gradle,grails,gwt,haskell,intellij,java,jboss,jekyll,
jetbrains,joe,joomla,justcode,jython,kate,kdevelop4,kohana,komodoedit,laravel,
latex,lazarus,leiningen,lemonstand,lilypond,linux,lithium,magento,matlab,maven,
mercurial,meteor,modelsim,monodevelop,nanoc,netbeans,node,notepadpp,objective-c,
ocaml,opa,opencart,openfoam,oracleforms,osx,perl,ph7cms,phpstorm,playframework,
plone,prestashop,processing,pycharm,python,qooxdoo,qt,quartus2,r,rails,redcar,
rhodesrhomobile,ros,ruby,rubymine,rubymotion,sass,sbt,scala,scrivener,sdcc,
seamgen,senchatouch,silverstripe,sketchup,stella,sublimetext,sugarcrm,svn,
symfony,symfony2,symphonycms,tags,target3001,tarmainstallmate,tasm,tex,textmate,
textpattern,turbogears2,typo3,unity,vagrant,vim,virtualenv,visualstudio,vvvv,
waf,wakanda,webmethods,webstorm,windows,wordpress,xamarinstudio,xcode,xilinxise,
yeoman,yii,zendframework

Advanced Command Line Improvements

Advanced command line suggestions are tracked on the gitignore.io wiki.

Install Locally

Requirements

Instructions

$ git clone --recursive git@github.com:joeblau/gitignore.io.git
$ cd gitignore.io/
$ vapor build
$ vapor run

About

.gitignore.io is a web service designed to help you create .gitignore files for your Git repositories. The site has a graphical and command line method of creating a .gitignore for your operating system, programming language, or IDE.

Languages
Swift 54.1%
Less 17.3%
CSS 13.8%
JavaScript 12.2%
Shell 2.2%
Other 0.4%