Add `checkout`, `reset` and `reset --hard` actions