Let's face it, you really shouldn't try to repair a fitting that's been cracked, or the threads are stripped. Instead, they should be replaced if it's the cause of a leak. However, in some cases they can be repaired or reinstalled.
If the leaky fitting is an O-ring face seal or O-ring boss, after depressurizing the system, carefully disassemble the connection and check if the O-ring is still in good condition. If it's cracked, misaligned, dried out or damaged in any way, it should be replaced. First, make sure you're using the correct O-ring size and material type, and ensuring it's properly lubricated. The proper lubrication of O-rings is imperative, as it will reduce surface friction to prevent cracking, pinching or abrasion during installation and while in service.
If your leaking fitting is an O-ring boss or face seal and the O-ring is damaged, simply make sure the threads are still in good shape, clean and free from debris and replace the O-ring. This is a common situation where the fitting "can be fixed".
The most popular non-O-ring hydraulic reusable fitting in the UK is the BSP straight reusable female and male style, where the male fitting has a 60-degree cone seat thread. These reusable fittings are fastened to a compatible hydraulic hose using a wrench instead of crimping.
In some instances, such as with NPT or JIC fittings, if the threads have only minor nicks, they might be able to be repaired with a crosscut and depth proportional thread file or triangle needle file. But you need to be sure the file will not skip or jump out of fine pitches. Plus, keep in mind removing and retightening fittings can further strip the threads, resulting in a new hydraulic fluid leak path. Though repairing threads in this manner is sometimes successful, one runs the danger of removing too much material, making the thread out of alignment, or causing other damage. That being said, we caution and do not necessarily recommend attempting to "fix" threads.
If you encounter leaking NPT or JIC style fittings, it's important to know their intended design is to be leak tight when initially installed. They are not designed to be removed and reinstalled because the threads might be stripped during reinstallation or retightening, which will cause leaks and insufficient connection. Instead, if NPT or JIC fittings are leaking or otherwise damaged they should be replaced.
A Short Conclusion
If you have a leak, be sure to depressurize the system before diagnosing the problem. If the cause is an O-ring style fitting, and the threads are in good shape, properly lubricate and replace the O-ring before reinstalling. If the fitting is NPT or JIC you should probably replace it. If the connection will accept a BSP straight reusable female and male style - go for it!
Just be sure not to mix fittings from different manufacturers or use a fitting that looks "close enough" ... and NEVER over torque when installing. It's like trying to fit a square peg into a round hole- you'd just be "cutting corners".