Create new github repo

  1. Go to GitHub.com and create a new repository. Call it what you want to make sure to copy the SSH key after creation. git@github.com:FredLavoie/projectName.git You can choose to create the README.md file. If you do, we will pull it later on at step 10).

  2. Create a new directory on your local machine for the project. Initiate the NPM modules and linter if you want to.

  3. In Terminal, navigate to the new directory. type in git init which will create the hidden directory �.git� in your local directory.

  4. In Terminal, type the following: git remote add origin <ssh key>

  5. Create a file called .gitignore and add the names of files and/or directories that you do not want to sync with your remote repository. Add the names of the files you want Git to ignore (.DS_Store, package-lock.json, package.json, node_modules, .eslintrc.js, igitignore).

  6. In Terminal, type the following git add * or choose the specific files you want to add to the first commit.

  7. In Terminal, type the following: git status to see which files are being added to the commit stage. Make sure that the files you want are being staged, and the files that you don�t want are not present (see .gitignore file).

  8. In Terminal, type the following: git commit -m "initial commit" which will create the first commit.

  9. In Terminal, type the following: git push origin master which will push your local content to the remote repository.

  10. In Terminal, type the following: git pull origin master which will pull the README.md file from the remote repository to your local repository.