Initializing a git repository and pushing to GitHub

At this time we will create our local git repository and then uploads it to account we just created on GitHub:

  1. Open the terminal/shell inside the root application folder and type the following command:
      git init
    
  2. Add a remote repository to project by typing the following command in the terminal/shell:
          git remote add origin https://github.com/<your github account 
           name>/n6b.git
    

    You must use your own github username in the previous code.

  3. Add all project files to source control by typing the following command in the terminal/shell:
      git add .
    
  4. Commit the project changes by typing the following command in the terminal/shell:
      git commit -m "initial commit"
    

    The last command is to upload all files to the ...

Get Node.js 6.x Blueprints now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.