I\'d like to embed the Git revision (SHA1) in my executables at build time. I can do it locally like this:
git log -1 --format=\'%h\' >version objcopy
One solution would be to have that version file already up-to-date when you launch your Netbeans job.
A post-commit hook could generate that file at the right place, for your Netbean job to read.