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

From: Bakul Shah <bakul_at_iitbombay.org>
Date: Sat, 03 Dec 2022 02:30:32 UTC
On Dec 2, 2022, at 5:19 PM, Graham Perrin <grahamperrin@freebsd.org> wrote:
> 
> On 02/12/2022 12:08, Nuno Teixeira wrote:
>> Not sure if I understand but I use `git switch` on ports tree to switch from 'main' to 'quarterly' to avoid having 2 trees.
>> 
>> e.g.
>> When in main and need to do a commit on 2022Q4:
>> `git switch 2022Q4`
>> `git pull --rebase`
>> `git cherry-pick -x XXX`
>> `git push`
>> 
>> and switch back to main:
>> `git switch -` or `git switch main`
>> `git pull --rebase`
>> 
>> Hope that helps
> 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.