Preparing your Windows box for AWS and a MEAN (Node) website: git init

Joseph Nielsen
2 min readSep 20, 2016

--

I walk through step by step how to get the Node.JS MEAN.JS scaffolded site working on a Windows 10 machine. In this section we’ll setup a local git repository. (And then you’ll be halfway done! The rest is all AWS stuff.)

Before we get too carried away, let’s save our work by setting up a git repo.

One cleanup activity first:

If you’re not still in the Git Bash window, go back to your project at “cd /c/projects/awesomewebsite/thedude” or where ever you saved it

First we need to get rid of the git references that were forked over from the meanjs generator.

Make sure you are in the directory that was created by the mean generator.

Remove the .git directory by running this command

rm -rf .git

Now that that’s removed we can initialize our own repository.

To get our repo started we’ll type

git init
git init

Setup your identity if it hasn’t already been setup

git config user.email josephn@slalom.comgit config user.name CodingJoe
tell git a little about yourself, supply your own email and username

Then run git add. This command prepares your files for being saved. The dot means include everything.

Think of “add” as like adding items to a shopping cart, except in this case the “checkout” button is a “save” button.

git add .

Now commit. (commit = save) The “-m” stands for message. Supply a message for all your commits — other coders will thank you, including yourself.

git commit -m "first"

Great, you’ve started your journey.

Feel free to connect to a remote repository or whatever you wish later on. Here’s an article that talks about git.

Unlisted

--

--

Joseph Nielsen

I lead the software engineering and DevOps practice for Slalom, New Jersey. I enjoy building things, endurance running and all things DeepRacer.