(Replying to PARENT post)

Nice. But technically its true. origin/master is not master on origin. It just refers to the last known commit pointed to by origin/master, which gets updated when you fetch (pull automatically fetches).

ls -l .git/refs/remotes/origin/master

origin/master is just a file on your system, you can see when it has been changed. It doesn't magically get updated. Do `git fetch origin` and if there are any changes, you'll see the timestamp change, and the contents:

cat .git/refs/remotes/origin/master

The basics of git are so simple, you can implement the core data structures and some operations in a day. It is really worth it to get to know these.

Somehow git has managed to create a very complex user interface on top of quite a simple core.

๐Ÿ‘คLutger๐Ÿ•‘2y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

> But technically its true.

Is it though?

Consider a bank telling a store I am buying things at "This person has has โ‚ฌ450 in their bank account", when at that moment I have โ‚ฌ310. The store would be rightfully pissed at the bank for effectively lying when it is made clear later on that the transaction could not be completed and the bank answers "well, the person had โ‚ฌ450 a few days prior to you asking us".

Without an explicit temporal information it is explicitly now.

Without an explicit status on sync status it is implicitly saying sync is up-to-date.

It's a lie of omission.

๐Ÿ‘คY-bar๐Ÿ•‘2y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

> It just refers to the last known commit pointed to by origin/master

The confusion lies in that origin refers to different things depending on if it's `origin master` or `origin/master`. Eg `git pull origin master` does the thing we expect

๐Ÿ‘คcush๐Ÿ•‘2y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

It's sort of misleading because origin is not the origin, it's your copy of the origin. You have to fetch to make it the same. I can't suggest a better name, but you have to admit the word 'origin' suggests the origin, not some partial copy of it.

It's not a biggy, it's just one of the little toe-stubs and paper cuts you get over pretty quickly.

๐Ÿ‘คemmelaich๐Ÿ•‘2y๐Ÿ”ผ0๐Ÿ—จ๏ธ0

(Replying to PARENT post)

> origin/master is just a file on your system

Unless it's a packed ref (https://git-scm.com/docs/git-pack-refs), in which case it's just a line in the packed-refs file.

๐Ÿ‘คcesarb๐Ÿ•‘2y๐Ÿ”ผ0๐Ÿ—จ๏ธ0