Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

A bunch of new commits have been made on the remote git repository, and you want to see what's changed from the version you have checked out on your computer previously. How do you do so?

share|improve this question

Simple. First run git fetch to get all the commits on the repo without making any local changes. Then, if your branch is called 'web' for example, run (assuming your remote is called origin)

git diff web..origin/web


git difftool web..origin/web

if you want to see the changes in a GUI.

If you want to only check what's changed in one file, you can specify the path to the file

git diff web..origin/web path/within/repo/to/

This should be straightforward to find on Google, but surprisingly wasn't. Putting in the specific commit SHAs is effort and somehow didn't work for me.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .