Skip to content

Instantly share code, notes, and snippets.

@emmaodia
Last active July 6, 2022 12:45
Show Gist options
  • Save emmaodia/9ee57df070c29db0e3ab3b0837f0ccf7 to your computer and use it in GitHub Desktop.
Save emmaodia/9ee57df070c29db0e3ab3b0837f0ccf7 to your computer and use it in GitHub Desktop.

create a new repository on the command line

echo "# helloqo" >> README.md

git init

git add README.md

git commit -m "first commit"

git branch -M main

git remote add origin https://github.com/emmaodia/helloqo.git

git push -u origin main

push an existing repository from the command line

git remote add origin https://github.com/emmaodia/helloqo.git

git branch -M main

git push -u origin main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment