Technology Errors

git: Error: Some Local Refs Could Not Be Updated; Try Running ‘git remote prune origin’ To Remove Any Old, Conflicting Branches

Lately I have been working on a Ruby project that has a bunch of different branches that various developers are working on. One of the development servers has multiple virtual hosts and at certain points in the code release cycle the various virtual hosts could be completely split from the main branch of Ruby code either because of a bug fix, a specific feature, or any number of other reasons. The other night I needed to bring one of the virtual hosts to a near production release to test some features of a product that uses the web application to record data and when I attempted to “git pull” I received an error which is described in detail below along with what I ended up doing to resolve the problem.

Technology Insights

Delete a Remote Branch from GitHub

Deleting a remote branch from a GitHub account is easy though I have seen numerous ways listed and only one of them worked for me possibly because of syntax errors. Sometimes a temporary branch may be necessary because of adding a contractor to work on a project or possibly just to pause the current projects to get something pushed out quickly.

Use the syntax below to remove a branch from GitHub.com.

Technology Errors

fatal: Unable to look up github.com (port 9418) (Name or service not known)

I was attempting to clone a github repo on a Slicehost account and received the error below. Its possible that github.com recently updated DNS so if this happens to you then you can use the temporary fix I located on github’s twitter account.

Error:fatal: Unable to look up github.com (port 9418) (Name or service not known)

This error was caused by attempting to clone edavis10’s redmine repo using the command below.

bash

  1. git clone git://github.com/edavis10/redmine.git