Fast git commit w/ message
I do git commit -m "Message here"
pretty often. I wanted that to involve less typing:
# ~/.gitconfig
[alias]
cm = "!f() { git commit -m \"$*\"; }; f"
Now I can run:
$> g cm Message here
Written by Jon Phenow
Related protips
1 Response
As in over a git alias? I go back and forth on that, myself. I've been leaning towards git-alias specifically because I know the one place I can see all of my git aliases then. Otherwise I have a few git aliases, Shell aliases, and shell functions strewn about.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Git
Authors
Related Tags
#git
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#