Alright, googling this for 10 minutes and the only examples I find are about aliasing things like commit -m, but how would I alias a command such as git commit -m? I tried using git config --global alias.gco "git commit -m" but this too only worked with the first command (commit -m). I also tried manually adding that command to the gitconfig file, but that didn't work either.
Is this impossible?
What i want to achieve:
I want to alias this: git commit -m So that instead of typing in git commit -m, I just type in gco
git config --global alias.gco 'commit -m'? I'm pretty sure I don't understand your question.git commit -mcommand does not work. Sorry, there was a grammar mistake, must be where your confusion rooted from.gco message, and notgit gco message, then you need to create a shell script or batch file or similar namedgcothat invokes git. Git alias alone can't solve this.