Skip to content

Instantly share code, notes, and snippets.

@Lu1zLuna
Forked from alexpchin/Setting_upa_new_repo.md
Created September 23, 2023 18:32
Show Gist options
  • Save Lu1zLuna/d7b7869058fd85c2b968adaa1b3e43bc to your computer and use it in GitHub Desktop.
Save Lu1zLuna/d7b7869058fd85c2b968adaa1b3e43bc to your computer and use it in GitHub Desktop.
Create a new repository on the command line

Setting up a new Git Repo

##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 [email protected]:alexpchin/<reponame>.git
git push -u origin master

##Push an existing repository from the command line

git remote add origin [email protected]:alexpchin/<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