~/.gitconfig
cib = !git commit -m \"`git rev-parse --abbrev-ref HEAD | ruby -e \"print STDIN.read.strip.gsub('-', ' ').capitalize\"`\"
とかして、ブランチ名 (ブランチ名はハイフン区切り) をコミットメッセージにする。
☁ git co -b remove-foo-file-from-head
Switched to a new branch 'remove-foo-file-from-head'
☁ git cib
[remove-foo-file-from-head 8f04925] Remove foo file from head
1 file changed, 0 insertions(+), 0 deletions(-)
create mode 100644 b.txt
アイディアは 爆速でトピックブランチを切るGitのエイリアス から頂きました。この逆バージョン。