Git Clone from GitHub over https with two-factor authentication

I recently began using two-factor authentication on GitHub, and I am now unable to use git over https on private repos in the usual way: peter@computer:~$ git clone[…]/MyPrivateRepo Cloning into ‘MyPrivateRepo’… Username for ‘’: […] Password for ‘https://[…]’: remote: Invalid username or password. fatal: Authentication failed for ‘[…]/MyPrivateRepo/’ If I disable two-factor authentication I … Read more

Diff syntax highlighting in Github Markdown

I’m writing documents that should explain code in C# using Markdown. I use the “`csharp to get csharp highlighting. I sometimes want to highlight something specific in the code using bold or anything. I know about <pre> etc… but it takes away my csharp highlighting. Best case scenario – some way to highlight code in … Read more

How to publish an npm package with distribution files?

I would like to publish a npm package that contains my source as well as distribution files. My Github repository contains src folder which contains JavaScript source files. The build process generates dist folder that contains the distribution files. Of course, the dist folder is not checked into the Github repository. How do I publish … Read more

git:// protocol blocked by company, how can I get around that?

Attempting something like git clone git:// will not work, it results in: Initialized empty Git repository in /home/robert/node/.git/[0:]: errno=Connection timed out fatal: unable to connect a socket (Connection timed out) However, cloning over HTTP works fine. So far I’ve gathered that it’s a problem with the protocol, but I’m trying to install cloud9 … Read more

Is it possible to search for a particular filename on GitHub?

I know that the GitHub web interface lets you search all repositories for files with a particular pathname (e.g. searching for path:/app/models/user.rb yields > 109k results), but is there a way to search all repositories for filenames independent of their subdirectory location? I tried using asterisks in the path argument, and that didn’t seem to … Read more