Create .gitignore file
change ifs from [ into [[ and use -z for checking empty options