Skip to content

Instantly share code, notes, and snippets.

@sriram15690
Created March 29, 2017 10:04
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 sriram15690/74a7c7cccf4ea56d17db34dd36634a46 to your computer and use it in GitHub Desktop.
Save sriram15690/74a7c7cccf4ea56d17db34dd36634a46 to your computer and use it in GitHub Desktop.
setup and push to github
Quick setup — if you’ve done this kind of thing before
Set up in Desktop or
HTTPS
SSH
https://github.com/sriram15690/subrepo-test.git
We recommend every repository include a README, LICENSE, and .gitignore.
…or create a new repository on the command line
echo "# subrepo-test" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/sriram15690/subrepo-test.git
git push -u origin master
…or push an existing repository from the command line
git remote add origin https://github.com/sriram15690/subrepo-test.git
git push -u origin master
…or import code from another repository
You can initialize this repository with code from a Subversion, Mercurial, or TFS project.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment