git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git diff

From
Wwebmaster@peter-speer.de <webmaster@peter-speer.de>
Date
Oct 12, 2016, 10:50 UTC
Message-ID
<1066408917.43087.1476269456819.JavaMail.open-xchange@app06.ox.hosteurope.de>
Hi.

I created a new branch named hotfix from master. I switched to the branch, changed 1 file.

Now I want to see the diff from the both using
git diff hotfix master

I do not see any output (difference). When I do a git status I see my file with status mofified, not staged for commit. Also, I can see that I am working with the correct branch, hotfix

What am I doing wrong?
-fuz
Next: Mike Rappazzo
Message 1 of 3 in “git diff”
  1. webmaster@peter-speer.deOct 12, 2016
  2. Mike RappazzoOct 12, 2016
  3. webmaster@peter-speer.deOct 12, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.