Autocorrect Your Aliases
By using help.autocorrect configuration option you can enable auto-correct for git commands. If you type any mistake in the command git will automatically suggest the correct one.
git config --global help.autocorrect 1
If you mistype the git command to know the autocorrect is enabled git suggests the closet command to it.
Aliases in Git
Pre-requisite: Git
Aliases are the user-friendly names given by a user to a git command so that the user doesn’t need to memorize the whole lengthy syntax of a git command. Let us go through some key terminologies
!: Somewhere in the ~/.gitconfig file, you will see this symbol. This is used to allow full shell syntax in git commands.