Skip to content

Instantly share code, notes, and snippets.

@wusuopu
Last active March 19, 2017 03:11
Show Gist options
  • Save wusuopu/9408486 to your computer and use it in GitHub Desktop.
Save wusuopu/9408486 to your computer and use it in GitHub Desktop.
生成.gitignore文件
#!/bin/bash
if [[ $@ != "" ]]; then
if [[ $2 != "" ]]; then
curl http://www.gitignore.io/api/$1 -o $2
else
curl http://www.gitignore.io/api/$1
fi
else
echo 创建gitignore文件
echo
echo Usage: mkgitignore lang
echo Example: mkgitignore vim,python
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment