Blog Repo From Scratch
Part of the Version Control section of Coddy's Terminal journey — lesson 56 of 58.
Challenge
MediumBuild a small blog repository from scratch. Starting from a folder with index.html and posts/hello.md:
- Initialize the repo on
mainand configure user asBlog Dev/blog@coddy.tech. - Create a
.gitignorewith the linedrafts/. - Stage everything and commit with the message
Initial blog. - Append
Welcome to my blog!toposts/hello.md, stage and commit with messageWelcome 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
2Getting Started
Initialize A RepositoryThe .git FolderConfigure Your IdentityGit StatusRecap - First Repo8Merging
What Is A MergeFast-Forward MergeThree-Way MergeMerge ConflictsResolve A ConflictRecap - Merge Master11Feature Branch Project
Project OverviewInitialize Main3Tracking Changes
The Staging AreaGit AddGit CommitModifying A Tracked FileGit LogRecap - First Commits6Recipe Site Project
Project OverviewInitialize And Ignore