Skip to content

Instantly share code, notes, and snippets.

View maxtortime's full-sized avatar

Kim Taehwan maxtortime

View GitHub Profile
@maxtortime
maxtortime / prepare-commit-msg
Last active July 30, 2020 08:16 — forked from qkraudghgh/shell
feature/sample 이름을 가진 브랜치일때 커밋 메시지 앞에 [sample] 을 붙여주는 훅
#!/bin/sh
if [ -z "$BRANCHES_TO_SKIP" ]; then
BRANCHES_TO_SKIP=(master develop release hotfix)
fi
BRANCH_NAME=$(git symbolic-ref --short HEAD 2> /dev/null)
if [ $? -eq 0 ]; then
BRANCH_NAME="${BRANCH_NAME##*/}"
@maxtortime
maxtortime / shell
Created July 30, 2020 08:13 — forked from qkraudghgh/shell
pre commit
#!/bin/bash
if [ -z "$BRANCHES_TO_SKIP" ]; then
BRANCHES_TO_SKIP=(master develop release hotfix)
fi
BRANCH_NAME=$(git symbolic-ref --short HEAD)
BRANCH_NAME="${BRANCH_NAME##*/}"
JIRA_ID=`echo $BRANCH_NAME | grep -oE '[A-Z]+-[0-9]+'`
@maxtortime
maxtortime / tmux-cheatsheet.markdown
Created January 18, 2017 04:24 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname