Skip to content

[ignoring-somethings] Improve verify logic #226

@jovnc

Description

@jovnc

Link to exercise: https://git-mastery.org/lessons/ignore/exercise-ignoring-somethings

Description

Verify logic can be improved. Currently, after we first run gitmastery download ignoring-somethings then run gitmastery verify without performing any changes, the error message is "You have not made any commits yet!", which isn't very useful to users (this should be a check at step 2).

Image

Ideally, we can refactor this such that the verification logic follows the steps for a more logical flow, ie. verify step 1 is complete first before step 2.

Exercise steps

  1. Update the .gitignore file (inside the files/ folder) to reflect the following requirements:
  • Git should ignore every file in the many/ folder except the file many/file22.txt.
  • why_am_i_hidden.txt should not be ignored by Git.
  • ignore_me.txt should be ignored by Git.
  • Git should ignore any runaway.txt file in this/ and any of its current and future subfolders (hint: use a pattern).
  1. Commit the updated .gitignore file.

Things to do

  • refactor verify logic
  • refactor repo-smith tests (if needed)

Metadata

Metadata

Assignees

No fields configured for Enhancement.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions