Branches
To get branch files differences use grep or --name-status
git diff master..dev | grep "^diff"
diff --git a/config/_database.php b/config/_database.php
diff --git a/config/database.php b/config/database.php
diff --git a/controllers/reports.php b/controllers/reports.php
git diff master..dev --name-status
D config/_database.php
M config/database.php
M controllers/reports.php
Merge
Merge one file from dev.
git diff master..dev views/header.phtml
git checkout dev views/header.phtml
Meaning
You have a new merge commit F, which has the history from D and E. The master branch does not get a file README, already deleted in master (in D).
master * A *-+* C * D --+-- F
/ /
dev ** B --+* E **--/
Last update: 496 days ago