Disclaimer: This solution only works on Windows.
Working with git on the command line interface seems to be faster and more productive than using a mouse. But do you know all the commands by heart? Do you type without mistakes? Yeah, me neither.
Today I present a solution - Autohotkey will complete any command for you.
I just write
gitc and press space/tab/enter and Autohotkey completes the command for me. This is because I configured it to work this way. All "scripts" are configured in *.ahk file that should be put to startup folder (its
Windows + R and
shell:startup or just
::gitc:: Send, git checkout - return
::gitrm:: Send, git rebase master --rebase-merges return
It's more fun because there are 2 git commands with 1 Authotkey command.
::gitfl:: Send, git log HEAD..origin/main --oneline return
I prefer command line because I do in git exactly what I indented to do. No more unexpected actions hidden on the UI. Writing commands also helps with learning and mastering git. If your goal is to have clean and readable history, that's the perfect way to go.
Now working on the command line with git should be easier and more friendly.
- this will also work with any kind of scripts, not only git
- off course, you can use Autohotkey to autocomplete your email footer or any other recurrent plain text