'How to save the results of git show as an excel file

I want to save a certain version of the excel file using python

I have used git show to get the content of this excel

git show 17ed4f74:xxx.xlsx

output: enter image description here

how to save it as an .xlsx file



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source