Skip to content

Instantly share code, notes, and snippets.

@Luismahou
Luismahou / commit-msg
Last active December 14, 2015 04:29
Add branch name to commit message
#!/bin/sh
# This script will add the branch name every time the commit command is executed.
# To activate it:
# - Copy it to /path/to/your/git/repository/.git/hooks/
# Getting the branch name
NAME=$(git rev-parse --abbrev-ref HEAD)
# Prepending the branch name to the commit message
#!/bin/bash
# Lots of useful transformations: http://www.imagemagick.org/Usage/transform/
# The following command will concatenate vertically all the pngs of the current directory.
# If there are 10 or less images only out.png will be generated,
# otherwise out-0.png, out-1.png, ... files will be generated.
montage -mode concatenate -tile 1x10 *.png out.png
# To ensure that the background is transparent