Xcode committed to Remote repo while local repo is set to 'Current'

Hi,

As per the title, Xcode seemed to have taken commits to remote repo instead of the local repo.

I just set up version control + GitHub connection earlier and decided to test things out with a few commits. When I perform commits, it shows up in the Remote / origin / main branch and not in the Branches / main (current). The commits only show up in Branches / main (current) is when I push.

Is this what Xcode is supposed to do? Am I correct in thinking that commits should be logged under local repo first and then gets recorded in GitHub when I push?

Any guidance would be appreciated, thanks!

Xcode committed to Remote repo while local repo is set to 'Current'
 
 
Q