Using git on a daily basis means working with the console a lot. I love working with it, but it does involve a lot of repetitive typing. Git commands also have a lot of options to remember and it’s not very forgiving of typos. So I’ve spent a lot of time trying to make this process smoother and significantly faster.
Since we work on Windows machines, the default console available for git, Git Bash is what everyone usually starts with. It comes with some sensible defaults for git like tab completion and branch hints in the prompt, but that is as far it goes. WSL, on the other hand, is the real deal (or as close as we can get for now) in the Windows world.
If you’re not already using WSL I’d highly recommend you do so. It opens up a whole new set of Unix tools that you can leverage to make your life in the console easier.
I’m going to (over a series of posts) write about all the tools & tricks I’ve picked up over the last year that will hopefully be useful to others starting out with WSL. Of course, this doesn’t imply my way is the best way - I’d be keen to hear feedback/tips on improving my own setup.
In case it takes more than words to pique your interest, this is what my workflow looked like with Git Bash out of the box.
… And this is my current setup.
This is my first foray into blogging if it isn’t already apparent. Please bear with my ramblings while I figure out if I have any aptitude for it.