Fixing a broken commit due to Error.Clear() calls that should've been The term 'Register-TabExpansion' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. fatal: Not a git repository: ../.git/modules/posh-git Cannot find a variable with name 'VcsPromptStatuses'..Clear()