Last active
March 19, 2017 03:11
-
-
Save wusuopu/9408486 to your computer and use it in GitHub Desktop.
生成.gitignore文件
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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