HostOnNet Blog

git diff

Looking for Linux Server Admin or WordPress Expert? We can help.

git diff command shows changes in current git repo.

To see list of changed files between 2 commits, run

git diff --name-only COMMIT_ID_1 COMMIT_ID_2

Example

$ git diff --name-only d523abc16fd26f3f269f99a1de623350e6f76d82 10a95d424540eb90ce94f214a25b7b4976c2284b
app/Http/Controllers/ImportController.php
app/Http/Controllers/MailController.php
app/Http/Controllers/MailingListController.php
app/Http/Controllers/SettingsController.php
app/Http/routes.php
app/MailingLists.php
database/migrations/2017_04_19_040237_drop_queues_table.php
database/migrations/2017_04_20_045005_create_mailing_lists_table.php
database/migrations/2017_04_20_045614_alter_mailing_list_table.php
resources/views/import/index.blade.php
resources/views/layouts/master.blade.php
resources/views/mail/index.blade.php
resources/views/mail/mail.blade.php
resources/views/mailing_list/index.blade.php
resources/views/mailing_list/lists.blade.php
resources/views/mailing_list/view.blade.php
resources/views/settings/index.blade.php
$ 

Posted in Git

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.