了解該篇文章 Git command reference 的 Compare files and versions 說明並記錄
目的:Compare the current contents of a singile file and the contents in the last commit
git 語法:git diff HEAD filename
Team Explorer 畫面:
下圖為 Compare files and versions 內容,紅色框框的兩個功能,在 VS 上操作不出來,先筆記一下,>.<
try 過程中有發現兩個 compare 使用
單一檔案歷史紀錄內,任選一個 commit 並使用 "與上一個比較" 功能
單一檔案歷史紀錄內,任選兩個 commit 並使用 "比較" 功能
![[VSTS] Git command reference-Compare files and versions-01](https://c1.staticflickr.com/1/498/32705637856_78c9dff5c9.jpg)
![[VSTS] Git command reference-Compare files and versions-02](https://c1.staticflickr.com/1/373/32605267932_8ac2470049_z.jpg)
![[VSTS] Git command reference-Compare files and versions-03](https://c1.staticflickr.com/1/289/32605267982_071c241b80_z.jpg)
![[VSTS] Git command reference-Compare files and versions-04](https://c1.staticflickr.com/1/419/32378822100_fb801f98e4_z.jpg)
沒有留言:
張貼留言