git查看历史代码

显示某次提交的所有diff

git log
git show 7ad028eb7f860d97d7c3d454b729fc97b9b1a25f

显示某次提交的某个文件diff

git log
git show 7ad028eb7f860d97d7c3d454b729fc97b9b1a25f /e/test.txt

猜你喜欢

转载自www.cnblogs.com/suruozhong/p/12112025.html