gojo
gojo copied to clipboard
A compilation of git katas
Gojo
A compilation of git katas - exercises that make you more confident in using more advanced git features.
Usage
- 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
./start
to start the kata and print instructions. - Do it.
- Execute
./test
to check your results. - Run e.g.
git reset --hard origin/kata-1-fixup
to start over.
If you've broken everything beyond repair, just delete the folder and start over from the top, by cloning this repository again.
Katas
-
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