Skip to content
Discussion options

You must be logged in to vote

Great question, this confused me too!
Both methods work, but it's usually easier to create the repository on GitHub first and then clone it locally.
This way, everything is already connected and you don't need to use git remote add or rename branches later.

If you've already started locally, no problem: just add the remote later with:
git remote add origin
git branch -M main
git push -u origin main

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@NyxRoot7
Comment options

Answer selected by NyxRoot7
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants