Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save devded/7af531c15b1345fa1b435631942de561 to your computer and use it in GitHub Desktop.
Save devded/7af531c15b1345fa1b435631942de561 to your computer and use it in GitHub Desktop.

create a new repository on the command line

echo "# ter" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/devded/ter.git
git push -u origin main

push an existing repository from the command line

git remote add origin https://github.com/devded/ter.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