Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get last changes of file with GIT

Tags:

git

I have a project with some sql files with queries. Every developer increments the content of these files (they never remove content).

I need a git command to get all the new lines on all .sql files made by all developers from my last commit.

like image 985
Jaime Rivera Avatar asked Sep 10 '12 21:09

Jaime Rivera


1 Answers

git whatchanged -p or git log -p are probably what you want here. Either will show the diff-formatted changes introduced at each commit. There are additional options to limit the reporting to specific commits, or to specific files, or to format the output in different ways, see the respective manual pages for more information.

like image 146
twalberg Avatar answered Oct 18 '22 20:10

twalberg