Wednesday, November 16, 2016

Setup and use a new git repository on github.com

1. Install git from http://git-scm.com

2. Signup for an account at http://github.com

3. Login github.com and create a repository
+ sign at the top right
public
Add .gitignore: Node so that Node module folder does not get source controlled (large in size)

4. Get the reposiory url. Clone or Download button.

5. Run the git clone command in the directory where you want the repository cloned.

git clone <git-repository-url>

6. Three common commands:

Stage your work (. means stage everything).
git add .

Commit your changes locally
git commit -m "comment"

Push your work to Github
git push