File: git-ignore-io.md

package info (click to toggle)
git-extras 7.4.0-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 2,120 kB
  • sloc: sh: 4,312; python: 994; makefile: 146
file content (95 lines) | stat: -rw-r--r-- 2,076 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
git-ignore-io(1) -- Get sample gitignore file
================================

## SYNOPSIS

`git ignore-io` [<OPTIONS>]

## DESCRIPTION

Get sample gitignore file from [gitignore.io](https://www.toptal.com/developers/gitignore/)

## OPTIONS

  <OPTIONS>

  -a, --append <types>...  
  Append new .gitignore content to .gitignore under the current directory  

  -r, --replace <types>...  
  Export new .gitignore to the current directory (The old one will be replaced)  

  -l, --list-in-table  
  Print available types in table format  

  -L, --list-alphabetically  
  Print available types in alphabetical order  

  -s, --search <word>  
  Search word in available types  

  -t, --show-update-time  
  Show the last modified time of ~/.gi\_list (where the list of available types is stored)  

  -u, --update-list  
  Update ~/.gi\_list  


## EXAMPLES
Show sample gitignore file for vim  

```bash
$ git ignore-io vim

    # Created by https://www.toptal.com/developers/gitignore/api/vim

    ### Vim ###
    [._]*.s[a-w][a-z]
    [._]s[a-w][a-z]
    *.un~
    Session.vim
    .netrwhist
    *~
```

Append sample gitignore for Vim and Python to .gitignore in current directory.

```bash
$ git ignore-io -a vim python
```

Show all available types

```bash
$ git ignore-io -l

    actionscript             ada                      agda                     android                  anjuta
    appceleratortitanium     appcode                  appengine                archives                 archlinuxpackages
    autotools                basercms                 bazel                    bluej                    bower
    bricxcc                  c                        c++                      cakephp                  carthage
    ......
```

Search ja in all available types

```bash
$ git ignore-io -s ja

    django
    jabref
    java
    ninja
```


## AUTHOR

Written by Lee-W <weilee.rx@gmail.com> 

## REPORTING BUGS

&lt;<https://github.com/tj/git-extras/issues>&gt;

## SEE ALSO

&lt;<https://github.com/tj/git-extras>&gt;