This website requires JavaScript.
Explore
Help
Sign in
luzifer
/
cfg
Watch
1
Star
0
Fork
You've already forked cfg
0
Code
Releases
Activity
7ab17e5f76
cfg
/
bin
/
git-b
6 lines
78 B
Text
Raw
Normal View
History
Unescape
Escape
Add script for slugified branch names Signed-off-by: Knut Ahlers <knut@ahlers.me>
2017-10-06 10:20:53 +00:00
#!/bin/bash
Limit branch length Signed-off-by: Knut Ahlers <knut@ahlers.me>
2017-12-15 11:29:57 +00:00
set -euo pipefail
Add script for slugified branch names Signed-off-by: Knut Ahlers <knut@ahlers.me>
2017-10-06 10:20:53 +00:00
Truncate branch names at 72 chars Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-01-07 20:49:27 +00:00
git checkout -b $(slugify "$@" | cut -c 1-72)
Copy permalink