Skip to content

Instantly share code, notes, and snippets.

@cobanov
Created February 24, 2022 22:20
Show Gist options
  • Save cobanov/73f5b8dfd07d302004ce7f43c85ccdd3 to your computer and use it in GitHub Desktop.
Save cobanov/73f5b8dfd07d302004ce7f43c85ccdd3 to your computer and use it in GitHub Desktop.
# Create a new repository on the command line
echo "# test" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/cobanov/test.git
git push -u origin main
# Push an existing repository from the command line
git remote add origin https://github.com/cobanov/test.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