# How to diff between a file on a branch and a master.

2 messages from 2010-09-09 to 2010-09-09. Participants: hogsolo, Jacob Helwig.
Thread: https://gitlist.dev/t/25054

## hogsolo, 2010-09-09 17:04

Subject: How to diff between a file on a branch and a master.
Message-ID: <1284051890085-5515312.post@n2.nabble.com>
URL: https://gitlist.dev/e/1284051890085-5515312.post%40n2.nabble.com

```

I've got a working file in my master, but I want to see what's different
about it on the branch.
I've seen how to diff the WHOLE branch and master, but not target a specific
file.
What's the syntax for that?

thanks
-- 
View this message in context: http://git.661346.n2.nabble.com/How-to-diff-between-a-file-on-a-branch-and-a-master-tp5515312p5515312.html
Sent from the git mailing list archive at Nabble.com.

```

## Jacob Helwig, 2010-09-09 17:16

Subject: Re: How to diff between a file on a branch and a master.
Message-ID: <20100909171626.GD8466@vfa-6z.perlninja.com>
URL: https://gitlist.dev/e/20100909171626.GD8466%40vfa-6z.perlninja.com
In-Reply-To: <1284051890085-5515312.post@n2.nabble.com>

```
On Thu, 09 Sep 2010 10:04:50 -0700, hogsolo wrote:
> 
> I've got a working file in my master, but I want to see what's different
> about it on the branch.
> I've seen how to diff the WHOLE branch and master, but not target a specific
> file.
> What's the syntax for that?
> 
> thanks

You should just be able to tack " -- path/to/file" on the end of the git
diff invocation you're using to get the diff for the entire branch.

-- 
Jacob Helwig

```
