列出一个文件的所有历史版本,选择一个版本进行查看 因为不知道在哪个版本把一些重要的东西删除了 所以想有没有这种方法,SourceTree这个GUI工具行么?
小伙看你根骨奇佳,潜力无限,来学PHP伐。
git log --follow -p file
Recommend this picture, it has common Git operations, it is very practical~
Image address: http://sfault-image.b0.upaiyun.com/37...
git log -- file-name View the commits that modified file-name in historical commits.
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
Recommend this picture, it has common Git operations, it is very practical~
Image address: http://sfault-image.b0.upaiyun.com/37...
git log -- file-name
View the commits that modified file-name in historical commits.
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