Skip to content

Instantly share code, notes, and snippets.

@nemosupremo
Created February 16, 2015 00:32
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 nemosupremo/657e4abe3b097ecdf572 to your computer and use it in GitHub Desktop.
Save nemosupremo/657e4abe3b097ecdf572 to your computer and use it in GitHub Desktop.
New Repo
…or create a new repository on the command line
echo "# newrepo" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin git@github.com:nemothekid/newrepo.git
git push -u origin master
…or push an existing repository from the command line
git remote add origin git@github.com:nemothekid/newrepo.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