Skip to main content
PProfileMatch
← Path

Git and GitHub · Git Basics: Working Tree, Staging Area and Your First Commits

0 XP
  1. 1 current stop: learning
  2. 2 upcoming
  3. 3 upcoming
  4. 4 upcoming
  5. 5 upcoming

Finish after stop 5

Stop 1 of 5 · Bike shop: reading the repair tag

Trick to keep in mind+3 XP

Status has two columns: left is staged, right is not-yet-staged.

Short status prints two letters per file. The first compares the index with the last commit, the second compares your working folder with the index. So a letter in both places means a change was staged and then you kept editing afterwards. A space in one column just means nothing differs for that comparison.

Read it once, then a question tests whether the trick stuck.