Colorize svn diff

Install colordiff and configure Subversion's diff-cmd.

Installing colordiff

On Mac OS X, you can install colordiff using MacPorts.

$ sudo port install colordiff

On Debian or Ubuntu, you can install colordiff using apt.

$ sudo apt-get install colordiff

On other systems, you can download source tarball from http://www.colordiff.org/ and install colordiff.

Configure Subversion

~/.subversion/config

[helpers]
diff-cmd = colordiff

Execution example

$ svn diff | less -R

Rename branch

To rename branch, you can use -m option of git branch.

Rename <oldbranch> to <newbranch>

$ git branch -m <oldbranch> <newbranch>

Rename current branch to <newbranch>

$ git branch -m <newbranch>

If <newbranch> exists, -M instead of -m must be used to force the rename to happen.

If the return value of a command is greater than 128, it means that the command is terminated by signal

If the return value of a command is greater than 128, it means that the command is terminated by signal.

$ man bash
The return value of a simple command is its exit status, or 128+n if the command is terminated by signal n.

Example:

$ some_command
$ echo $?
139

In the above example, the return value is 139. Because 139=128+11 it means that the command was terminated by signal 11.
See `man signal` and you will find that signal 11 is SIGSEGV and it means segmentation violation.