Add .gitignore to ignore all generated files and directories

Add a simple .gitignore to ignore all generated files and directories. And test the proposed workflow,