Step 1 Open up a blank image and click the text tool and type whatever you want. Then click Transform to Selection.
Step 2 Click the gradient button. and set your settings as mine:
Step 3 De-select and you’re done!