Skip to content

Instantly share code, notes, and snippets.

@tomohung
tomohung / prepare-commit-msg
Last active March 28, 2023 03:57
git/hooks/prepare-commit-msg add branch name
#!/bin/sh
#
# An example hook script to prepare the commit log message.
# Called by "git commit" with the name of the file that has the
# commit message, followed by the description of the commit
# message's source. The hook's purpose is to edit the commit
# message file. If the hook fails with a non-zero status,
# the commit is aborted.
#
# To enable this hook, rename this file to "prepare-commit-msg".
@tomohung
tomohung / gist:061685498241b9f5d7946893fd48d4f5
Last active March 31, 2022 00:49
RubyMine Custom Postfix
.tm : times {}
ANY → $END$.times { $expr$ }
.tmd : times do..end
ANY →
$END$.times do
$expr$
end