Recap - Branch Play
Part of the Version Control section of Coddy's Terminal journey — lesson 33 of 58.
Challenge
MediumThe folder contains readme.md. Starting from a blank slate:
- Initialize the repo on
main, configure user asRecap Learner/recap@coddy.tech, and make a first commit with the messageAdd readme. - Create and switch to a new branch called
draft. - Append the line
v2toreadme.mdand commit it with the messageAdd v2 note. - Switch back to
main. - Print the contents of
readme.mdonmain, followed by the current branch name on a new line.
Try it yourself
Terminal
All lessons in Version Control
7Branching
What Is A BranchCreating A BranchSwitching BranchesCommitting On A BranchDeleting A BranchRecap - Branch Play2Getting 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