Compress the files listed by the command "ls -1" into an archive called "/tmp/myfile.tar.gz" excluding the files listed in the ".gitignore" file.
tar -zcvf /tmp/myfile.tar.gz $(ls -1 | egrep -v "$(cat .gitignore)")