# to connect a remote branch with your local one you
# can use branch command with the --set-upstream-to flag
# connecting origin/main to local main
git branch --set-upstream-to origin/main main
# same command shorter version
git branch -u origin/main main
# same command shorter - without branch name (defaults to current)
git branch -u origin/main