Skip to contents

Exercises inspired from Oh shit Git!

exo_time_machine()
"Oh shit, I did something terribly wrong, please tell me git has a magic time machine!?!"
exo_committed_to_main()
"Oh shit, I accidentally committed something to main that should have been on a brand new branch!"
exo_committed_to_wrong()
"Oh shit, I accidentally committed to the wrong branch!"
exo_latest_message()
"Oh shit, I need to change the message on my last commit!"
exo_one_small_change()
"Oh shit, I committed and immediately realized I need to make one small change!"
exo_undo_commit()
"Oh shit, I need to undo a commit from like 5 commits ago!"
exo_revert_file()
"Oh shit, I need to undo my changes to a file!"

Other exercises

exo_split_changes()
"Hey I'd like to split these changes to the same file into several commits!"
exo_clean_dir()
"Hey I'd like to remove these untracked files I created to test stuff!"
exo_conflict()
"Hey I'd like to see what merge conflicts look like!"
exo_rebase_i()
"Hey I'd like to make my commits in a branch look informative and smart!"
exo_bisect()
"Hey I'd like to find which commit introduced a bug!"

All exercises at once

create_all_exercises()
Create all exercises folder at once