How to set an env variable in a batch file from a script command?
git log -1 --pretty=%h
I am running many commands in batch file and I want to set the value of this script in an env variable and use this variable. I am using windows OS.
Hence I require to have something like this:
SET TAG_NAME=git log -1 --pretty=%h