Git diff in summary?

With git pull, it shows a diff summary like this:

Updating 6a78751..811f788
Fast-forward
 app/Http/Controllers/SaleController.php    |   7 +-
 .../views/pages/sale/create.blade.php      | 137 +++++++++++++---
 resources/views/pages/sale/index.blade.php |   4 +-
 resources/views/pages/sale/show.blade.php  |   5 +-
 4 files changed, 123 insertions(+), 30 deletions(-)

Is there a way to use commands like git diff to get similar output?

  • xCode 4.5 git merge fails to commit or give errors
  • npm install from private gitlab repository - authentication failed
  • How can I ignore all files except those with a certain extension in git?
  • Break Points Only Working When Project Run From Certain Locations
  • How to prevent git merge to merge a specific file from trunk into a branch and vice versa
  • InteliJ: Force read-only when on master branch
  • Unable to clone repository with a Bambo Remote Agent
  • git commit auto add new folders or files?
  • How to make git switch to newly created branch automatically?
  • Ignore specific commit but stay in head
  • GitHub: make fork an “own project”
  • What would you select between rebase and merge methods in pull?
  • 2 Solutions collect form web for “Git diff in summary?”

    git log --stat will show the amount each file was changed.

    git whatchanged gives some detail into the files that were modified.

    git diff --stat <sha1> <sha2> gives the files and the amount of changes between two commits.

    git diff is indeed the command you seek. In particular you want

    git diff --stat
    

    Other similar reports are available using

    git diff --numstat
    git diff --shortstat
    git diff --dirstat
    git diff --name-status
    
    Git Baby is a git and github fan, let's start git clone.