database migration - In git how to find out which files were added after a specific tag? -


i maintain database migration sql script files.

i tag commits git tag.

suppose have tags 1, 1.1, 1.2, 1.3

i want modify (db migration sql script) file when no tag added repo after file created. how can find out?

if file created , (version) tag added dont want modify sql migration script, instead add totally new sql file helps me want.

you can use git diff grepping follows:

git diff --name-status your-tag..head | grep ^a

this means:

"get me differences between your-tag , head, showing file name , status (added, modified, deleted, created). "

the grep filters files have been added, --name-status indicates beginning line uppercase "a".


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -