https://github.com/chrishalbert/git-prepend-msg
Tool to prepend commits with branch name.
https://github.com/chrishalbert/git-prepend-msg
Last synced: 9 months ago
JSON representation
Tool to prepend commits with branch name.
- Host: GitHub
- URL: https://github.com/chrishalbert/git-prepend-msg
- Owner: chrishalbert
- Created: 2017-08-24T13:27:54.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2021-08-31T18:33:35.000Z (almost 5 years ago)
- Last Synced: 2025-06-04T20:11:53.941Z (about 1 year ago)
- Language: Shell
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Git Prepend Msg
Installs a prepare commit message hook.
## Details
After you name your branch `ABC-123`, any time you commit, you will have that branch prepended to the commit message.
```bash
$ git commit -m 'Comitting code.'
[ABC-123 186b582] [ABC-123] Committing code.
```
## Install
### Manual
1. Clone the repository.
1. Run install.
1. Verify changes by going to an existing code base and running `git init`
### Scripted
On the command line, you can copy paste. This will download the code, unzip the file in your temp directory, run the install, and then remove remnants.
```bash
curl -LOk https://github.com/chrishalbert/git-prepend-msg/archive/master.zip && mv master.zip /tmp/git-prepend-msg-master.zip && cd /tmp && unzip /tmp/git-prepend-msg-master.zip && cd /tmp/git-prepend-msg-master && ./install && rm -Rf /tmp/git-prepend-msg-master* && cd
```