re-flaring brake line
As long as it is long enough?
Uou can cust it off, slide the flare fitting back over the line, and use a flare tool. Make sure you double flare the end, it has to be strong and double rooled.
You will need a flare tool kit to do this.