Commit Template

We’ve now added a major new piece to our application and it is working, so we should commit our work and push it to the remote GitHub repository.

  1. Open a terminal window (or reuse one you already have open) and navigate to your jumpstart-webdev directory.

  2. Check git status by typing the following into the terminal.

git status

Do you see that changes have been made?

  1. In your local repository, add your new template to version control and add the change we made to app.py:
git add templates/talk.html app.py

Your changes are now staged locally to be committed locally.

  1. Commit your changes to your local repository:
git commit -m "adding talk template"
  1. Look at git status
git status

Do you see a message about how “Your branch is ahead of ‘origin/master’ by 1 commit”? That means your work is committed locally to version control but the changes have not yet been sent to the remote repository on GitHub.

  1. Push your changes to GitHub:
git push

You can confirm through the github.com interface that the code is now there.