user797963
user797963

Reputation: 3037

Git how to diff branch1/dir/* against branch2/*?

How can I make this git diff work? Using the docs I can only find out how to diff 2 entire branches, or dirs/files in the branch that have the same root. Though, I need to diff branch1/dir/* against branch2/*.

Upvotes: 0

Views: 38

Answers (1)

pratZ
pratZ

Reputation: 3356

Try this,

git diff branch1:dir/ branch2:

This should give the desired output.

Upvotes: 3

Related Questions