Skip to content

Instantly share code, notes, and snippets.

@yzAlvin
Created March 10, 2021 23:00
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 yzAlvin/74dc917d91f675d0e58cc338c8912508 to your computer and use it in GitHub Desktop.
Save yzAlvin/74dc917d91f675d0e58cc338c8912508 to your computer and use it in GitHub Desktop.
Create new git repo on cli
##Initialise new repository on the command line
vi README.md
git init
git add README.md
git commit -m "Initial commit"
git remote add origin git@github.com:<org/user>/<reponame>.git
git push -u origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment