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

Git diff|status against remote repo

From
SLStefanie Leisestreichler <stefanie.leisestreichler@peter-speer.de>
Date
Sep 16, 2019, 09:02 UTC
Message-ID
<3218b394-4dcf-0b99-c561-b1811f0be3d6@peter-speer.de>
Hi.

I am far from being a pro in git. There is something I do not understand.

This is my git config:
[core]
         repositoryformatversion = 0
         filemode = true
         bare = false
         logallrefupdates = true
[remote "origin"]
         url = ssh://git@192.168.2.2:/home/git/PROJECT.git
         fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
         remote = origin
         merge = refs/heads/master
[branch "develop"]
         remote = origin
         merge = refs/heads/develop
I have a local repo called "develop" also on each involved dev machine.

Developer A has made changes on nearly each file of the project by changing the namespace and locally commited those changes to his local branch "develop". After that he did a git push.

On a not involved machine M I did a git clone ssh://git@192.168.2.2:/home/git/PROJECT.git and after that I did a "git checkout develop" which was followed by a message like "Branch develop is following remote branch develop from origin". I can see all the changes Developer A has made.

On my machine DEV I am on my local branch develop. Since I did not pull or merge from origin already, I am not able to see any of those changes developer A has made. So far so good. But I would expect, that git status (which results in "On branch develop. Your branch is up to date with origin/develop) or "git diff origin/develop develop" or "git diff origin/develop...develop" (both no output at all) would give me a hint that I am x commits behind origin/master or (git diff) will show me the changes Developer A committed to the Repro. But nothing...

What am I doing wrong?

Thanks, Steffi

Next: Pratyush Yadav
Message 1 of 3 in “Git diff|status against remote repo”
  1. Stefanie LeisestreichlerSep 16, 2019
  2. Pratyush YadavSep 16, 2019
  3. Stefanie LeisestreichlerSep 16, 2019

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.