I have an existing repository on GitHub. It's private, so I'm sorry I can't provide the URL as part of this question. I have some code in a folder. This folder does not have a .git folder. I want to "connect" or "link" this folder with a remote repository. I'm using this documentation.
Everything goes fine up to step 4. Then I get this error:
% git init -b main
error: unknown switch `b'
What am I doing wrong here?