Get recent file changes using GIT

I have a project with some sql files with queries. Each developer increases the content of these files (they never delete the content).

I need a git command to get all newlines in all .sql files made by all developers from my last commit.

+6
source share
2 answers

If you need to get the latest changes to a remote repository, you can use git fetch .

To see the differences between the version and the latest version, try git diff . To compare between the selection and your version, try git diff HEAD HEAD^ .

+5
source

git whatchanged -p or git log -p is probably what you want here. Or it will show the diff format changes made with each commit. There are additional options to limit reporting to specific commits or specific files, or to format output in different ways, see the corresponding manual pages for more information.

+14
source

Source: https://habr.com/ru/post/925062/


All Articles