Git: compare file between branches

If you need to compare a file between two branches

git diff mybranch master -- myfile.js