On Tue, Mar 16, 2010 at 3:19 AM, vfclists <vfcli...@googlemail.com> wrote:
>
> Is there a git command to compare a file in your working directory
> against the same file in a branch or a particular commit?
>


git diff example_branch -- path/to/file

git diff cf3b3fd -- path/to/file

-- 
Rick DeNatale

Blog: http://talklikeaduck.denhaven2.com/
Twitter: http://twitter.com/RickDeNatale
WWR: http://www.workingwithrails.com/person/9021-rick-denatale
LinkedIn: http://www.linkedin.com/in/rickdenatale

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To post to this group, send email to git-us...@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.

Reply via email to