如何从特定的提交中显示所有提交的SQL文件 [英] how to show all commited sql files in git from a specific commit on

查看:96
本文介绍了如何从特定的提交中显示所有提交的SQL文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以得到一个有序的sql文件列表,这些sql文件在最后一次提交时被提交到特定的提交进行操作?

I would like to find out if it is possible to get an ordered list of sql files that were commited to git from a specific commit on til the last commit?

推荐答案

git diff --name-only commit_hash -- '*.sql' | sort

这篇关于如何从特定的提交中显示所有提交的SQL文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆