Generating .gitignore with one-line command
gig
A CLI tool that simply generate specific .gitignore template downloaded from gitignore list
Install
- using NPM
npm i -g ignore-gen
- or
git clone https://github.com/MegrezZhu/gig.git && cd gig npm i .
Usage
Setup
templates fetching required before generating:
gig u
Or using proxy:
gig u -p http://localhost:1080
Basic Use
- create a
.gitignore
file at cwd:gig g <template>
, e.g:gig g node
- output to stdout:
gig g node -s
useful with piping:
gig g node -s > a.txt
More
see gig -h
or gig <command> -h
-- -------------------- ---- ------- ------ --- --------- --------- -------- --- --------- ------ --- ------- ------ --- ------ ------ ----- ----------- --------- -------- --------- ----- - ------ ------ --------- ------ ---- --- --------- ---------- -------- ----- --------- ---------- -------- ---------- ---- --------- -------- ------- ----- ------ ---------
HomePage
https://github.com/MegrezZhu/gig#readme
Repository
git+https://github.com/MegrezZhu/gig.git
来源:JavaScript中文网 ,转载请注明来源 https://www.javascriptcn.com/post/6005642681e8991b448e1547