Menu
Coddy logo textTech

Recap - Branch Play

Part of the Version Control section of Coddy's Terminal journey — lesson 33 of 58.

challenge icon

Challenge

Medium

The folder contains readme.md. Starting from a blank slate:

  1. Initialize the repo on main, configure user as Recap Learner / recap@coddy.tech, and make a first commit with the message Add readme.
  2. Create and switch to a new branch called draft.
  3. Append the line v2 to readme.md and commit it with the message Add v2 note.
  4. Switch back to main.
  5. Print the contents of readme.md on main, followed by the current branch name on a new line.

Try it yourself

Terminal

All lessons in Version Control