What am I doing wrong?
Almost all Git operations work on your local information. It looks like your master
branch and your origin/master
one point to the same commit. You probably need to fetch
the changes first.
I don't want to do any changes yet. I understand "fetch" will change something locally... right? Is there any "read-only" way of telling this?
Yes and no. fetch
will not change your local master
branch. What it will do is download the updates that happened to origin/master
, that is, your local copy of the remote branch. So, in a way, there will be changes, but not to master
which is supposedly what you care about.
Git doesn't work like SVN or CVS where they are all the time contacting the server (because they don't have the information locally). Instead, you fetch
changes whenever you need, and then everything else is local without involving any network calls.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…