Skip to content

Instantly share code, notes, and snippets.

@kitsuyui
Created February 15, 2015 16:01
Show Gist options
  • Save kitsuyui/ba7955112ceb4d45d72a to your computer and use it in GitHub Desktop.
Save kitsuyui/ba7955112ceb4d45d72a to your computer and use it in GitHub Desktop.
.gitignore は自動生成してる ref: http://qiita.com/kitsuyui/items/185c2ca26d1ea4be5d75
#!/usr/bin/env bash -eu
cd "${0%/*}" && exec > .gitignore
gibo osx
gibo linux
gibo vagrant
gibo python
cat <<'EOF'
.foobar.conf
something_*.log
EOF
$ gibo osx
### https://raw.github.com/github/gitignore/408c616ae0ad8f4b8101d8e876b9b67ac6b14059/Global/osx.gitignore
.DS_Store
.AppleDouble
.LSOverride
# Icon must end with two \r
Icon
# Thumbnails
._*
# Files that might appear on external disk
.Spotlight-V100
.Trashes
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
$ gibo osx python >> .gitignore
$ gibo python >> .gitignore
$ # しばらく経つ
$ gibo python >> .gitignore
$ # しばらく経つ
$ gibo python >> .gitignore
$ chmod +x .gitignore_gen
$ ./.gitignore_gen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment