I have been using git
for ages but there are some things that just don't click for me.
As part of my normal build system, I need to export a specific tag into a temporary source directory and the only way I've found to do this is by using git archive
.
Specifically:
/Applications/Xcode.app/Contents/Developer/usr/bin/git archive #{internal_version} --format=zip > #{$temp_source_code_path}/code.zip
This is stupid as I first need to zip the entire thing and then unzip it before building it.
The actual git repository is local and the command is run from it.
Is there a better (faster) way of doing this?
Best regards,
Frank