tags:

views:

167

answers:

2

how can I see a diff between a local branch and a remote branch?

+4  A: 
/home/meder/foo
git init
git add .
git commit

/home/meder/bar
git init
git add .
git commit

/home/meder/foo
git remote add bar ../bar
git fetch bar
git branch -a
git diff master bar/master
meder
a little hard for a newbie to understand hehe.
mrblah
that's why I specifically typed out all the commands you need instead of saying something like "git diff" - can you try that in the command line? What OS are you using?
meder
+5  A: 

git diff <local branch> <remote-tracking branch>

For example git diff master origin/master, or git diff featureA origin/next

Jakub Narębski