Git Diff Branches

Need to tell the difference between two git branches? Git diff is handy command to see what files are different from one branch to another.

Running it will give an output like this:

> git diff master...staging
──────────────────────────────────────────────────────────────────────────────────────
added: .editorconfig
──────────────────────────────────────────────────────────────────────────────────────
@ .editorconfig:4 @
root = true

[html]
indent_style = tab
 
[**.java]
indent_style = space
indent_size = 4
 
[**.scss]
indent_syle = tab
──────────────────────────────────────────────────────────────────────────────────────
modified: _layouts/default.html
──────────────────────────────────────────────────────────────────────────────────────
@ _layouts/default.html:30 @
        </script>
        <script>

git-diff can do a lot more, read more about it here

Instagram Post