Install colordiff and configure Subversion's diff-cmd.
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.
diff-cmd = colordiff
$ svn diff | less -R
When I divide huge files such as log or CSV, I want them not to be divided in the middle of the line.
First, look into the number of lines in the file.
$ wc -l access_log
Divide the file by 100000 lines.
$ split -l 100000 access_log
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.
$ man bash
The return value of a simple command is its exit status, or 128+n if the command is terminated by signal n.
$ echo $?
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.