Menu
CoddyTech

Recap - Detective Work

Part of the Version Control section of Coddy's Terminal journey. Lesson 18 of 58.

challenge icon

Challenge

Medium

The folder contains users.txt with two lines.

Every run starts from a fresh copy of the folder, and the whole script in the editor runs again from the top. Nothing is committed for you: begin with git init -q -b main, set git config user.name and git config user.email, and commit the starting file. Keep those lines in the editor. If you clear them you will see fatal: not a git repository.

Make this change and review it:

  1. Append the line charlie to users.txt (do not stage or commit it).
  2. Run git diff to display the unstaged change.

Try it yourself

Terminal

All lessons in Version Control

Practice on your own: Terminal playground