Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

git diff returns incorrect

Tags:

git

branch

diff

I am trying to check my master branch against another branch. It is hosted on bitbucket and I have verified there that branch (called incremental) is just returning nothing. So when I diff the branch like this:

git diff master..incremental

I get nothing. In case it makes a difference I'm on the master branch as this ourput shows:

>LLG_db conryf$ git branch
  component_integration
  incremental
* master

Like I said, I'm sure the branches differ but none of those diff are showing up. Here is a bit of the bitbcket output (the branches are way different): enter image description here

like image 210
Frank Conry Avatar asked Sep 21 '26 17:09

Frank Conry


1 Answers

Just be sure you're doing diff against updated ref:

$ git fetch
$ git diff master..origin/incremental

or

$ git checkout incremental
$ git pull
$ git diff master..HEAD
like image 153
Robert Avatar answered Sep 24 '26 06:09

Robert



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!