Changing files and committing those changes.

  1. Use a text editor to add Manfred Delmonte to a new line in files/employees.txt and Peaches to a new line in files/products.txt.
  2. Stage the changes that you made to the files. Use the git status command to check that you have staged all of your changes.
  3. Commit your staged changes using the commit message "Add Manfred and Peaches".

Pushing

If you have your own repository containing this exercise (e.g. a fork) then you can push the changes you made.

Resources

  1. For many of the steps you could use the Git cheat sheet or git - the simple guide to find the correct command.
  2. For setting up your git configuration you can see the "Your Identity" and "Your Editor" sections of the Git Pro Book.
  3. For staging and committing modifications to already tracked files take a look at "Staging Modified Files" and "Committing Your Changes" in [Git Pro Book]https://git-scm.com/book/en/v2/Git-Basics-Recording-Changes-to-the-Repository). These sections will also explain how to provide commit messages.