Why does GitHub recommend HTTPS over SSH?

GitHub have changed their recommendation several times (example). It appears that they currently recommend HTTPS because it is the easiest to set up on the widest range of networks and platforms, and by users who are new to all this. There is no inherent flaw in SSH (if there was they would disable it) — … Read more

Is there a command line utility for rendering GitHub flavored Markdown?

I wrote a small CLI in Python and added GFM support. It’s called Grip (Github Readme Instant Preview). Install it with: $ pip install grip And to use it, simply: $ grip Then visit localhost:5000 to view the readme.md file at that location. You can also specify your own file: $ grip CHANGES.md And change … Read more

How to leave a message for a github.com user

Although GitHub removed the private messaging feature, there’s still an alternative. GitHub host git repositories. If the user you’re willing to communicate with has ever committed some code, there are good chances you may reach your goal. Indeed, within each commit is stored some information about the author of the change or the one who … Read more

Authenticate with GitHub using a token

Your curl command is entirely wrong. You should be using the following curl -H ‘Authorization: token <MYTOKEN>’ … That aside, that doesn’t authorize your computer to clone the repository if in fact it is private. (Taking a look, however, indicates that it is not.) What you would normally do is the following: git clone https://scuzzlebuzzle:<MYTOKEN>@github.com/scuzzlebuzzle/ol3-1.git … 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

Clone only one branch [duplicate]

From the announcement Git 1.7.10 (April 2012): git clone learned –single-branch option to limit cloning to a single branch (surprise!); tags that do not point into the history of the branch are not fetched. Git actually allows you to clone only one branch, for example: git clone -b mybranch –single-branch git://sub.domain.com/repo.git Note: Also you can … Read more

How can I see the size of a GitHub repository before cloning it?

There’s a way to access this information through the GitHub API. Syntax: GET /repos/:user/:repo Example: https://api.github.com/repos/git/git When retrieving information about a repository, a property named size is valued with the size of the whole repository (including all of its history), in kilobytes. For instance, the Git repository weights around 124 MB. The size property of … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)