gitalias icon indicating copy to clipboard operation
gitalias copied to clipboard

Add 'calm' short for commit all with a message

Open akalcik opened this issue 7 years ago • 2 comments

akalcik avatar Aug 19 '18 23:08 akalcik

Thanks! How often do you personally use this command, without any push?

Do you know about these two?

  • git c -am (this is "c" for commit, then the typical built in -am for --all --message)
  • git put (this is a git alias that does commit --all --message and also does the push)

I'm aiming to make "ca" always "commit --amend" because the "--amend" arg has no short form.

joelparkerhenderson avatar Aug 20 '18 23:08 joelparkerhenderson

Well I wasn't sure about the abbreviation. I thought cma as git --message --all but it wouldn't respect the order. I was aware of git put as I also had short code for this on my mind but skipped it in this pull request because of this. I know git c -am but thought shortcut would be better. I'm using it often as I commit only small changes and than push it when everything out when it make sense. I'm open to change the name.

akalcik avatar Aug 21 '18 09:08 akalcik

I have the following:

caa = commit --amend --all
caane = commit --amend --all --no-edit

And I use git caane a lot.

felipecrs avatar Oct 04 '23 04:10 felipecrs

@felipecrs Seems reasonable to me... would you like to do a merge request aka PR, or would you prefer I add your two at the next update?

joelparkerhenderson avatar Oct 04 '23 06:10 joelparkerhenderson

Sure, I'll do it later today. :)

felipecrs avatar Oct 04 '23 13:10 felipecrs

Merged in #100.

joelparkerhenderson avatar Oct 08 '23 16:10 joelparkerhenderson