Set aliases in the ~/.gitconfig file.

I did a blog post here on git aliases.

Invoke the shell notes

The hash is necesary to prevent using the argument - only matters with echo where you want commet out the rest.

foo = "! echo \"Hello, $1!\" #"

Define and call function.

bar = "!f() { echo \"Hello, $1!\" } ; f"