How to transfer Github Gist to Repository?

Viewed 112
1 Answers

The simpler approach would be to clone your repository, and copy in it your gist, as a new file.
From there, add, commit and push.

Note that you can, from command-line, list your gists with gh girst list and view the content of a particular gist with gh gist view

gh gist view https://gist.github.com/8d11e24576c94b2c07a9a48288082588.git

(you need to install gh first)

You can also, since yesterday, do it online by going to your repository Muhammad-Ammar-Masood/Log-In-Page, and use GitHub Codespace by typing ..
You can add your gist in the online VSCode there.

Related