Latest posts

92 articles

Git refusing to delete a remote branch because it is set as current

I wanted to do some clean-up on a remote repository, which contained a lot of obsolete branches. But one of them returned the following error: As this verbose message explains, I was trying to delete the branch named "alpha", which was set as the current branch on the remote repository. It was an…

Git: show all branches on a remote repository

The command below displays all the branches on the remote repository called "origin", including those that are not tracked locally. It also displays local branches configured to be pulled or pushed and their current state. Source To list only the branches that are tracked locally, use:

Arch Linux upgrade fails because some file exists in filesystem

From time to time, pacman refuses to upgrade because of a file conflict. Since it does not want to take the responsibility of overwriting an existing file which might be used by another package, it displays the following error: In this case, pacman tries to install the package freeimage, which…

Avaaz staff members face increasing threats, including death threats! They have probably become too annoying to some of the corrupted people thinking the world is their personal playground... They ask our help to finance better security for them and their families.

Execute a specific version of PHP on OVH shared server from command line

The first step is to find the right executable. For example, the default PHP executable is still in version 5.3.16: Other versions are available and we have to specify them explicitly, as we do for Apache through an .htaccess file. My scripts need at least PHP 5.4 and, to use it in CLI, we need the…