Skip to content

Instantly share code, notes, and snippets.

@stasgm
Created January 14, 2019 16:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stasgm/5278ab708211d521eb28de4a158f64e8 to your computer and use it in GitHub Desktop.
Save stasgm/5278ab708211d521eb28de4a158f64e8 to your computer and use it in GitHub Desktop.
git
###create a new repository on the command line
echo "# html-test" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/stasgm/html-test.git
git push -u origin master
###push an existing repository from the command line
git remote add origin https://github.com/stasgm/html-test.git
git push -u origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment