GitHub Cookbook: Difference between revisions

From Littledamien Wiki
Jump to navigation Jump to search
(Created page with "Category:Git Category:Web Development == Create a new repo on GitHub == * Sign in * '''Top Right''' > ''user name'' > '''plus sign drop down''' > '''Create New...'''...")
 
No edit summary
Line 18: Line 18:
</syntaxhighlight>
</syntaxhighlight>


== Push an existing repo from the command line
== Push an existing repo from the command line ==


<syntaxhighlight lang="powershell">
<syntaxhighlight lang="powershell">

Revision as of 23:13, 19 November 2014


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