Committing the changes in index.html

If I run git status you're going to see that we have a modified file index.html, and it also thinks we deleted index.js, although we add something down below, when we run git add . and rerun git status it's going to understand exactly what happened:

Here, you can see we copied index.html to chat.html, we then modified index.html and renamed index.js to chat.js, which is exactly what we did. I'm going to go ahead and actually make the commit using git commit with the -m flag, Add join page that submits to chat.html:

git commit -m 'Add join page that submits to chat.html'

We can then make the commit, push ...

Get Advanced Node.js Development 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.