This is how I roll, you might choose a different path.
How to restore it.
This used to be a thing until we got the NSUUID class with iOS 6 and macOS 10.8
You don't need to change the device settings.
If all you want to do is to sign and/or verify commits