Working with Git
Without a doubt, Git is a commonly used source control system. Originally written by Linus Torvalds to use for Linux kernel source code, it is now widely used, including by companies such as Microsoft, where it is used extensively, including for Windows development (see https://docs.microsoft.com/en-us/azure/devops/learn/devops-at-microsoft/use-git-microsoft for more information).
In this section, we will look at a few tips for working with Git in WSL. Some tips are covered in previous chapters and linked for further information, while others are new tips – both are tied together here for handy reference.
Let's start by looking at a quick win for most command-line tools: bash completion.
Bash completion with Git
When working with many command-line tools, bash completion can save you a lot of typing, and git
is no exception.
For example, git com<TAB>
will produce git commit
, and git chec<TAB>
will produce git checkout
. If the partial...