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).
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
- 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).
- Commit the updated .gitignore file.
Things to do
- refactor verify logic
- refactor repo-smith tests (if needed)
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-somethingsthen rungitmastery verifywithout 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).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
Things to do