gitbashalias

How can I make this git command alias?


I want to make a alias, like this below

gc this is a test message convert to git commit -m "this is a test message".

How can I do this? I want that in my bashrc.


Solution

  • This isn't an alias, but try

    function gc() {
      git commit -m "$*"
    }