Git

These are directions for those on Windows computers. If you are using a Mac computer, do some Googling for Git Bash.

If you are using a Windows computer, search for Git for Windows. You can use the default settings when you are downloading it. When it asks about a text editor, you can choose Atom as your default text editor. That’s what we’ll be downloading.

Download and open.

We’ll be using this when getting our projects online. You’ll need to use file paths to use this.

Type ls . (That’s LS without the period.) This lists the files and folders in the current directory. Look for something that looks familiar. We’re going to be working our way to finding your saved index file. I’ve been saving my in Documents. If you did too, just follow along.

Type cd documents. CD means change directory. We are telling it to open the documents folder by telling it to change to the documents directory. You can only tell it to open a folder within the current directory.

Next, type ls again. Look at the list of files and folders. Hopefully you see a projects folder. If not, you’ll need to change directory (cd) into the folder where you do have your projects saved.

If you saved your projects the way I did, type cd projects.

We’ll stop there for today. The important thing is to be able to find the directory (folder) where your project is saved. Use ls (list) and cd (change directory) to work your way into the folder where your index.html file is saved.

If you pass your directory and need to go backward, you can type cd ../ to go up one folder. You can also close it down and just reopen it and start your file path from scratch.

You can watch the video for this lesson to see the whole download, instillation, and use.

Note: LS is different than LI <li></li> that we use in tags for list elements in HTML. This is  ls and it lists for you what is in your folder.