Compare git branches, tags and commits in your favourite diff tool.
Copy git-diff
in some folder under $PATH
, e.g. /usr/local/bin/
.
Run
git-diff master develop
from a git repo's root folder to see the diff from branch master
to develop
which may look someting like this.
From there on your can visually compare the diff.
You can compare between branches, tags or commits.
# tags
git-diff 1.0.0 1.0.1
# commits
git-diff 1be7447 3e52081
# compare master to tag
git-diff 1.0.0 master
The scripts uses git's preferred diff tool specified for the config diff.tool
or opendiff
if no git diff tool is configured.
Matthias Hochgatterer
Github: https://github.com/brutella/
Twitter: https://twitter.com/brutella
git-diff is availabe under ISC license. See the LICENSE file for more info.