Assuming I have a text file
alex bob matrix will be removed git repo
and I have updated it to be
alex new line here another
Line numbers of all uncommitted lines (added/modified):
git blame | grep -n '^0\{8\} ' | cut -f1 -d:
Example output:
1 2 8 12 13 14