Recap - Detective Work
Part of the Version Control section of Coddy's Terminal journey. Lesson 18 of 58.
Challenge
MediumThe 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, setgit config user.nameandgit config user.email, and commit the starting file. Keep those lines in the editor. If you clear them you will seefatal: not a git repository.
Make this change and review it:
- Append the line
charlietousers.txt(do not stage or commit it). - Run
git diffto display the unstaged change.
Try it yourself
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 IgnorePractice on your own: Terminal playground