Menu
Coddy logo textTech

Blog Repo From Scratch

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

challenge icon

Challenge

Medium

Build a small blog repository from scratch. Starting from a folder with index.html and posts/hello.md:

  1. Initialize the repo on main and configure user as Blog Dev / blog@coddy.tech.
  2. Create a .gitignore with the line drafts/.
  3. Stage everything and commit with the message Initial blog.
  4. Append Welcome to my blog! to posts/hello.md, stage and commit with message Welcome message.

Print the count of commits, then the contents of posts/hello.md, in that order.

Try it yourself

Terminal

All lessons in Version Control