GitHub Cookbook

From Littledamien Wiki
Revision as of 23:13, 19 November 2014 by Video8 (talk | contribs)
Jump to navigation Jump to search


Create a new repo on GitHub

  • Sign in
  • Top Right > user name > plus sign drop down > Create New... > New Repository
  • Enter a name

Create a new local repo from the command line

touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/dbarchowsky/damienjay_web.git
git push -u origin master

Push an existing repo from the command line

git remote add origin https://github.com/dbarchowsky/damienjay_web.git
git push -u origin master

See Also