2
我想從git倉庫獲取該文件的特定版本。在包含(使用Python腳本)我執行以下命令回購的本地副本的文件夾:無法從git倉庫使用Python獲取特定文件版本
subprocess.call("C:\Program Files\Git\bin\git.exe show 34f97c9 folder\file.py > D:\file.py")
可悲的是我得到的是:
fatal: >: no such path in the working tree.
Use 'git <command> -- <path>...' to specify paths that do not exist locally.
當我直接嘗試gitbash相同的命令(顯然沒有git補丁)它工作得很好。
請問您有什麼建議嗎?
非常感謝!修復blackslashes並將shell參數設置爲True幫助:) – Arxas