Since I am new to Git, I have some trouble getting started (Git version 2.12.3).
I created on a server a file (in GitLab) which I can clone to a local directory.
git clone git@gitlab.server.com:/joe/myproject.git
All fine, and I have a local copy of the file. But when I change remote something to the file (from someone else or on the server), then I am not able to track or to see the changes on the local client, even if they are clearly visible on the master. Not with
git diff file1
or
git diff origin/master
or something else.
I have to fetch the file, merge it, and then I am able to see the newly edited content. Is it possible to observe and detect the new changes before fetching the new file?