- To be added
(sudo) gem install gitignores
- To be added
- To be added
Create useful .gitignore files for your project
Create useful .gitignore files for your project gitignore.io.
Official README Available at
To run gitignore.io from your command line you need an active internet connection an environment function. You need to add a function to your environment that lets you access the gitignore.io API.
#!/bin/bash
$git config --global alias.ignore '!gi() { curl -L -s https://www.gitignore.io/api/$@ ;}; gi'
#!/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
#!/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
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
Show output on the command line. Note: Use gig if you are on Windows.
Append Operating System and IDE settings to global .gitignore. Note: Use gig if you are on Windows.
$gi linux,eclipse >> ~/.gitignore_global
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
Note: *Will list all available .gitignore
types based on projects.
.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.
Copyright (C) 2013-2015 Joe Blau
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
For more information about how .gitignore
files work, and how to use them,
the following resources are a great place to start:
- The Ignoring Files chapter of the Pro Git book.
- The Ignoring Files article on the GitHub Help site.
- The gitignore(5) manual page.