You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
date: 2017-01-09
title: Add ticket number to git commit automatically
summary: I'm gonna explain automation to add ticket number in your git commit
slug: add-ticket-number-to-git-commit-automatically
lang: en-US
tags: [git]
Most of ticket tracker like Github, pivotal tracker have function to connect your commit to ticket(story).
But every time when you commit copy and paste that of ticket number is annoy...
So I created a script using git hook to add ticket number to your commit automatically.
date: 2017-01-09
title: Add ticket number to git commit automatically
summary: I'm gonna explain automation to add ticket number in your git commit
slug: add-ticket-number-to-git-commit-automatically
lang: en-US
tags: [git]
Most of ticket tracker like Github, pivotal tracker have function to connect your commit to ticket(story).
But every time when you commit copy and paste that of ticket number is annoy...
So I created a script using git hook to add ticket number to your commit automatically.
Script
Then you can copy & paste this script to
prepare-commit-msg
Configuration
To enable this script run this command.
$ git config core.hooksPath ~/.git-templates/hooks/
Usage
This script expects that your branch is named using this format
Pivotal Tracker
Github
When every time you commit script add that number using this format to you commit !!
Pivotal Tracker
[#1111]
Github
The text was updated successfully, but these errors were encountered: