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
2009-11-25 23:59:18
a little hard for a newbie to understand hehe.
mrblah
2009-11-26 00:06:38
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
2009-11-26 00:07:56
+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
2009-11-26 01:50:17