Skip to content

Instantly share code, notes, and snippets.

View thealexbaron's full-sized avatar

Alexander Baron thealexbaron

View GitHub Profile
@thealexbaron
thealexbaron / prepare-commit-msg.sh
Last active November 16, 2017 16:40 — forked from bartoszmajsak/prepare-commit-msg.sh
How to automatically prepend git commit with a branch name
#!/bin/bash
# per @madeindjs's suggestion:
# For a quick install, into your project folder enter this command line:
#
# curl https://gist.githubusercontent.com/thealexbaron/fd2a390dc6f8958d1b1ffe8b66b676bb/raw/5f5ed22c281a8488116a41e4496075f8b28d106a/prepare-commit-msg.sh > .git/hooks/prepare-commit-msg && chmod u+x .git/hooks/prepare-commit-msg
#
# which does:
# - get Gist
# - copy into .git/hooks/prepare-commit-msg file
import java.util.Random;
public class Fields
{
Random dice = new Random();
int oneDThree;
public void getRand()
{