The amazing Git Archive

I’ve been using git for 5 years and this tool always surprises me. I faced a problem this week that seems simple but require a lot effort to execute using only the commands ZIP or TAR: Create a TAR archive of the project excluding all the files and folders included in the gitignore file. I tried only with the TAR command but my .gitigore was massive. After some research, I found the following example that uses git archive command to compress the project excluding the content of gitignore (this post):...

May 6, 2021 Â· 1 min Â· Polotto