This is a question when googled brings up results pertaining to “comparing local with remote”, and not much specific to my problem.
I have two branches checked out locally, and up to date.
When I then do a git diff
I get the following output:
me@work:~/dev/project/myuberproject (branchA)
$ git diff branchB
ssh: Could not resolve hostname gitlab.ourgitlabserver.com: Name or service not known
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
fatal: could not fetch e0e7c...2115 from promisor remote
Here I am not connected to the VPN on which the gitlab server is reachable.
The point of the question is: why does it want to go to remote to do a diff on two fully locally checked out and up to date branches?
5