Skip to content

Instantly share code, notes, and snippets.

@RashneetR
Created December 10, 2020 06:06
Show Gist options
  • Save RashneetR/12f328f3d115b4de730fdb561798364d to your computer and use it in GitHub Desktop.
Save RashneetR/12f328f3d115b4de730fdb561798364d to your computer and use it in GitHub Desktop.
create a new 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/RashneetR/project_name.git
git push -u origin master
# Push an existing repository from the command line
# If the repository doesn't exist on Github, first you will have to create it: https://help.github.com/articles/creating-a-new-repository/
git remote add origin https://github.com/RashneetR/project_name.git
git push -u origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment