Skip to content

Instantly share code, notes, and snippets.

@nim4n136
Forked from seankross/init.md
Created June 24, 2019 10:39
Show Gist options
  • Save nim4n136/d833e2b526b68e2c9d3c2bc8647bad67 to your computer and use it in GitHub Desktop.
Save nim4n136/d833e2b526b68e2c9d3c2bc8647bad67 to your computer and use it in GitHub Desktop.
Initializing GitHub repository

Create a new repository on the command line

touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/seankross/womp.git
git push -u origin master

Push an existing repository from the command line

git remote add origin https://github.com/seankross/womp.git
git push -u origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment