Skip to content

Instantly share code, notes, and snippets.

View FranAguiar's full-sized avatar

Francisco Aguiar FranAguiar

View GitHub Profile
@FranAguiar
FranAguiar / commit-msg
Last active August 27, 2018 07:40
Format commit message
#!/bin/bash
#
# Add name branch as first line in commit body and flow and context in commit tittle
#
# If the branch has the format 'dev/flow/task' commit with the format 'git commit -m "context # commit title"'
# The commit will be:
#
# _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
#
# flow(context) commit title