GithubHelp home page GithubHelp logo

theniwo / git-ignore Goto Github PK

View Code? Open in Web Editor NEW

This project forked from crheidri/git-ignore

0.0 0.0 0.0 27 KB

Bash script to source .gitignore templates.

License: GNU General Public License v3.0

Shell 100.00%

git-ignore's Introduction

git-ignore

This bash script sources .gitignore templates from GitHub to the root of the current git repository as "/.gitignore". See the list of templates available at github/gitignore.

NOTE: names are case-sensitive (e.g. 'TeX' is a valid template, but 'tex' is not).

Getting Started

Clone this project and add it to your path:

foo@bar:~$ git clone https://github.com/crheidri/git-ignore.git ~/git-ignore
foo@bar:~$ export PATH=$PATH:$HOME/git-ignore

Currently git-ignore requires curl to source templates from GitHub. On Ubuntu Linux you can install it with:

foo@bar:~$ sudo apt-get install curl

Examples

Use the command git ignore <template> from anywhere within a git repository to download a .gitignore template matching <template>.

Project-specific .gitignore

foo@bar:~$ mkdir python_project
foo@bar:~$ cd python_project
foo@bar:~/python_project$ git init .
foo@bar:~/python_project$ git ignore Python

This will create the Python .gitignore template as ~/python_project/.gitignore

Global .gitignore

Templates organized as Global (operating system or editor specific) need to use the --global (-g) flag

foo@bar:~$ git ignore --global VisualStudioCode

Community .gitignore

Templates organized as Community (operating system or editor specific) need to use the --community (-c) flag

foo@bar:~$ git ignore --community Puppet

License

GNU General Public License

git-ignore's People

Contributors

crheidri avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.