git show with copying file as custom action

We want to define a custom action, which copies a specific file from a selected commit to a temporary file,

The goal is to be able to then merge/compare the files using an external tool, which unfortunately cannot be called from command line. (Specifically: Codesys)

The solution we were trying so far is the following custom action:
Script to run: C:\Program Files\Git\bin\git.exe
Parameters: show $SHA:./test.project > ./test_old.project

However, this does not seem to work, even though copying the resulting command to the git terminal works just fine...
The resulting message was at first something about " > " being ambiguos, but somehow it in by now just "Completed with errors, see above."

0 answers

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted 6 hours ago in Off-topic

Miscellaneous Monday - CreatatronV3

You may remember, not so long ago, that together we invented the most evil of machines: The Destructo5000!  The effects of missing Durian rippled over nations. Complete chaos as goat chee...

55 views 4 2
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you