git
Git
Disable Automatic CRLF Line Ending Conversion#
Configure credential helper#
WSL#
Linux#
Set Default Branch to main#
Configure User Name and Email#
Configure lfs#
Aliases#
Neither oh-my-zsh's git plugin nor PowerShell's git-aliases module — the former defines 197
aliases at once where only these few get used. Both sides keep identical semantics so the
muscle memory carries across platforms.
zsh#
PowerShell#
These have to be functions rather than Set-Alias, since an alias cannot carry fixed
arguments.
Import-Module git-aliases -DisableNameChecking is exactly what the module was doing about
this; defining the functions by hand means taking that step over yourself.
Both sides chain the same way: