Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- if [ $1 == 'commit' ]; then
- if [ -e .gitignore ]; then
- cp .gitignore .git/.gitbak
- ls >> .gitignore
- git $1 $2 "$@"
- cp .git/.gitbak .gitignore
- rm .git/.gitbak
- else
- ls > .gitignore
- git add .gitignore
- git $1 $2 "$@"
- rm .gitignore
- fi
- else
- git $@
- fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement