Can you link a MD file to you repository's wiki? - github

So I'm using an npm package called jsdoc-to-markdown to generate my documentation files, and I want to link them to that same repo's wiki. So how would I do that??
my repo

On GitHub, your wiki's git repository is stored at "https://github.com/org/repo.wiki.git". You'll want to copy your files to there and then push to it.
EDIT: For you, that would be https://github.com/ErrorBot1122/Roblox-File-Handler.wiki.git.

Related

How to transfer Github Gist to Repository?

I am new to Github. I recently have created a gist https://gist.github.com/8d11e24576c94b2c07a9a48288082588.git and want to transfer it to my repository at https://github.com/Muhammad-Ammar-Masood/Log-In-Page.git.
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.
You can, download Github Desktop on "https://desktop.github.com/", log in , create a new repository with GitHub Desktop, then choose a local directory on your PC for the newly created repository.
You can go to your Gist and choose to download as zip at the right end of the options
Screenshot of Gist Url and the download button highlighted
You can extract the zip file to your local directory assigned for the newly created repository.
On your GitHub Desktop : You can commit and push the changes of the repository to your GitHub.

How to add a relative link to a file in a submodule in github markdown?

I'm using markdown for the README file in my repositories.
Relative links work well for files in the same repo.
But I want to link a file in a submodule (so that the same version as the submodule is displayed).
The usecase is the following: I have a submodule in external/fancy-lib. In the README.md of my repository I want to add "please refer to fancy-lib's [README](external/fancy-lib/README.md) for info about the required packages", but it generates a non-existent link.
Adding a link to fancy-lib's README from fancy-lib's repository would point to HEAD which is not always the same version included in my repository.
On the other hand, manually updating the link each time the submodule is updated to a new version (git pull) is a burden of maintenance.
Any workaround?
I do not think relative links are going to work. One can always use the full URL though, which is something like
![](https://raw.githubusercontent.com/<account>/<name of submodule repo>/README.md)
or
https://github.com/<account>/<repo>/blob/<hash>/README.md

How do I view the source of Markdown files on wiki Github?

How do I view the raw source of a wiki github file, like this: (without closing the wiki repo)
NOTE: I don't see a raw button for a wiki github page (which was the proposed solution for
How do I view the source of Markdown files on Github? )
Attach .md to the URL.
https://github.com/adam-p/markdown-here/wiki/Markdown-Here-Cheatsheet.md
will redirect to
https://raw.githubusercontent.com/wiki/adam-p/markdown-here/Markdown-Here-Cheatsheet.md
therobinkim's method doesn't work for me .
If you don't mind download all the wiki, just change clone command from
git clone https://github.com/[user]/[repo].git
to
git clone https://github.com/[user]/[repo].wiki.git

How do you completely remove a file on github

I've seen the command needed to remove a file and erase it from the history on git. Is there a way to do this with the github website? If not, it looks like I need to know where the file is to do it with a git command. Where does github store the local repositories?
See: https://help.github.com/articles/remove-sensitive-data
To get a local version of the repository, look up the URL from the repo page on Github and clone as explained in the link above.

Do I need to move my source code into my repo in github for windows

So I've just installed githib for windows. Do I actually need to move my source code into my repo now or do I leave it where it is and somehow point the repo to it?
eg if my app is at
c:\app
and the repo
at
c:\github\repo
do I need to copy everything into the repo?
The github instructions are pretty helpful.
Try: https://help.github.com/articles/create-a-repo
In Step 1 your app folder is equivalent to the folder the README file is in.