A compilation of git katas - exercises that make you more confident in using more advanced git features.
- Clone this repository:
git clone https://github.com/salemove/gojo.git && cd gojo. - See the list of available katas with
git branch -a. Everykata-*branch is a kata. - Pick a kata and start it with e.g.
git checkout kata-1-fixup. - Run
./startto start the kata and print instructions. - Do it.
- Execute
./testto check your results. - Run e.g.
git reset --hard origin/kata-1-fixupto start over.
If you've broken everything beyond repair, just delete the folder and start over from the top, by cloning this repository again.
- Fixup:
kata-1-fixup - Squash:
kata-2-squash - Commit splitting:
kata-3-split-commit - Splitting an old commit:
kata-4-split-old-commit - Redistribute commit contents between different commits:
kata-5-redistribute-commits - Recover a lost commit:
kata-6-recover