2017-07-17 15 views
0

我嘗試使用git處理自定義程序。像比較兩個文件之間的差異有些任務我只是創建新的進程和運行TortoiseGit命令這樣在提交中使用TortoiseGit diff命令並添加新文件時出錯

/command:diff /startrev:20404fc1039ce9ee73f0d16213319afe480b0a05 /endrev:294e111888ed87a8c93a898f6e6f061b15250e0d /path:D:/Project/ReportingTool/Src/Reports.Types/Report.cs 

在修改提交文件,我得到了相同的結果TortoiseGit UI。 picture here

的問題是,在新增加的承諾文件有在以前的版本中沒有文件結賬比較。錯誤說

failed to checkout file "files/powershell/App_BuildAndDeploy.ps1" of 
revision 62f7869c1780e6501ec1c4dc0387f03efbde10da to 
"C:\Users\ME\AppData\Local\Temp\TortoiseGit\AppAAD3.tmp\App_BuildAndDeploy- 
62f7869-left.ps1" libgit2 returned:the path 'App_BuildAndDeploy.ps1' does 
not exist in the given tree 

如何獲得像TortoiseGit因此喜歡這幅畫,desired result

我知道我可以只是某個位置創建新的空文件,並用它來比較,但我不知道那是做

+1

我對TortoiseGit源代碼進行了快速回顧。看起來像使用命令** diff **無法做到這一點。想要解僱一個TortoiseGit問題?然後,轉到https://tortoisegit.org/issues。 –

+0

@YueLinHo新問題已創建,感謝您的建議。我會不斷更新。 –

回答

1

這是在舊版本的TortoiseGit和is fixed的問題的最好/正確的方法TortoiseGit 2.5.0。

請注意:/startrev:/endrev:參數在舊版本中混在一起,您可能需要調整這些值。

相關問題