Github: Can I see the number of downloads for a repo?

Update 2019: Ustin‘s answer points to: API /repos/:owner/:repo/traffic/clones, to get the total number of clones and breakdown per day or week, but: only for the last 14 days. API /repos/:owner/:repo/releases/:release_id for getting downloads number of your assets (files attached to the release), field download_count mentioned below, but, as commented, only for the most recent 30 … Read more

npm install and build of forked github repo

Try npm install <ghusername>/<repoName>, where <ghUsername> is your GitHub username (without the @) and <repoName> is the name of the repository. That should correctly install it. You will most likely want to use the –save or –save-dev flag with the install command to save dependency in your package.json. If that isn’t working correctly, check the … Read more

How to get the current branch within Github Actions?

I added a separate step for extracting branch name from $GITHUB_REF and set it to the step output – name: Extract branch name shell: bash run: echo “##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})” id: extract_branch after that, I can use it in the next steps with – name: Push to ECR id: ecr uses: jwalton/gh-ecr-push@master with: access-key-id: ${{ … Read more

How to show math equations in general github’s markdown(not github’s blog)

But github show nothing for the math symbols! please help me, thanks! GitHub markdown parsing is performed by the SunDown (ex libUpSkirt) library. The motto of the library is “Standards compliant, fast, secure markdown processing library in C”. The important word being “secure” there, considering your question :). Indeed, allowing javascript to be executed would … Read more

Delete fork dependency of a GitHub repository

You can contact github support and ask them to switch your repository to “normal mode”. On this page, “Commit was made in a fork” paragraph, it is explained that one has to go through support to switch. Therefore, it is likely that there is no way to do that by yourself (unless you destroy and … Read more

Calculate RSA key fingerprint

Run the following command to retrieve the SHA256 fingerprint of your SSH key (-l means “list” instead of create a new key, -f means “filename”): $ ssh-keygen -lf /path/to/ssh/key So for example, on my machine the command I ran was (using RSA public key): $ ssh-keygen -lf ~/.ssh/id_rsa.pub 2048 00:11:22:33:44:55:66:77:88:99:aa:bb:cc:dd:ee:ff /Users/username/.ssh/id_rsa.pub (RSA) To get the … Read more

How to add color to GitHub’s README.md file

One way to add color to a README is by utilising a service that provides placeholder images. For example this Markdown can be used: – ![#f03c15](https://via.placeholder.com/15/f03c15/f03c15.png) `#f03c15` – ![#c5f015](https://via.placeholder.com/15/c5f015/c5f015.png) `#c5f015` – ![#1589F0](https://via.placeholder.com/15/1589F0/1589F0.png) `#1589F0` To create a list of any colors you like: #f03c15 #c5f015 #1589F0

How to fix HTTP 404 on Github Pages?

I had just one commit with all my files. I pushed an empty commit, refreshed the page and it worked. git commit –allow-empty -m “Trigger rebuild” git push If this doesn’t work, as @Hendrikto pointed out in the comments, check out the Github status page and make sure GitHub Pages are operational.