I've lost my .gitconfig aliases in an OS reload on my machine and I failing to set up and alias for a command that I used to run on my old machine.
I used to run git commit -am 'commit message here' in terminal and it would add all files for me, git add ., and then git commit -m for me with the string given to the alias -am command passed in as the commit message. How should I correctly set up and alias to recreate this behaviour on my new machine?
I've played around with various syntax, such as:
am = "git add . && git commit -m"
or am = "!git add . && git commit -m"
But these are not working so must be incorrect. Can anyone advise as to how best to do this? Thanks