
次の場所に関数を作成しました.zshrc
。
function gc {
git commit -m $1
}
しかし、この関数を呼び出そうとすると、次のようになります。
gc "some commit message"
私は得る:
error: pathspec 'some commit message' did not match any file(s) known to git
私は何が間違っていましたか?
次の場所に関数を作成しました.zshrc
。
function gc {
git commit -m $1
}
しかし、この関数を呼び出そうとすると、次のようになります。
gc "some commit message"
私は得る:
error: pathspec 'some commit message' did not match any file(s) known to git
私は何が間違っていましたか?