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
Community showcase
Posted 4 hours ago in Featured Groups

Hi! I'm Cameron Deatsch, Head of Server at Atlassian and I'm hosting an AMA next week.

Hey team! I'm Cameron Deatsch, Head of Server at Atlassian. I'll be hosting an AMA over in our Questions section of the Community next Monday, so shoot me your questions, upvote others' question...

22 views 0 2
View post

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