Convert git repository into a tarball for sharing

In this post, I will share how can you convert git repository into a tarball that respects `.gitignore` for easy sharing.