Re: git-switch(1) then git-pull(1)

From: Graham Perrin <grahamperrin_at_freebsd.org>
Date: Sat, 03 Dec 2022 02:58:43 UTC
On 03/12/2022 02:30, Bakul Shah wrote:
>> …
>>
>> There's the statement after the switch:
>> "up to date"
>> If the branch is truly updated, then what are the subsequent updates? (The pull immediately after the switch.
> The "Your branch is up to date with ..." message by git switch
> is confusing but upd to date is merely with respect to the local
> .git. It mainly changes .git/index and .git/HEAD mostly. git pull
> or fetch" is a separate issue.
>
OK, keyword: local. Now I understand the need for a separate pull. Thanks.


 From Git documentation:

> The working tree and the index are updated to match the branch. 

Would it be truer if I imagine this?

> The working tree and the index are updated to match the local branch.