列出一个文件的所有历史版本,选择一个版本进行查看
因为不知道在哪个版本把一些重要的东西删除了
所以想有没有这种方法,SourceTree这个GUI工具行么?
高洛峰2017-04-21 10:59:03
Recommend this picture, it has common Git operations, it is very practical~
Image address: http://sfault-image.b0.upaiyun.com/37...
阿神2017-04-21 10:59:03
git log -- file-name
View the commits that modified file-name in historical commits.
高洛峰2017-04-21 10:59:03
Method 1. Open the commit log history of git gui: click "Repository", click "Visualize All Branch history" to see the details of historical changes.
Method 2.git command: git log or git log --pretty=online