There are repairs beyond this, but those generally need tools (chain whips, torque wrenches), and require materials (replacement cables, housings, hydraulics for disc brakes) it’s not practical to ride with, so you’re better off walking it to a bike shop if I can’t fix it with this.