What to click to copy code from Github:

Get what you need like a pro, no need to select the code manually!

Open the desired Github repository.

Navigate to and open desired text file.

Click copy icon.
Now, the code is stored in your clipboard.