Olumide
Olumide

Reputation: 5839

Difference between a directory on two remote branches on git

I'd like to find the difference between a given directory on two remote branches. Currently I can compare the two branches like so

gitk --left-right remote/branch1 remote/branch2

But that's giving me way too much information. I'd like to limit the diff to one directory, foobar. Is this possible?

Upvotes: 1

Views: 384

Answers (1)

crea1
crea1

Reputation: 12617

You can specify path as the last parameter. -- is optional, but use it to make sure the path is seperated from preceding options.

gitk --left-right remote/branch1 remote/branch2 -- foobar

Upvotes: 1

Related Questions