So this command I'm trying to use to list all the files in my directory (my github repo that I cloned to vsc) doesn't seem to work. Vsc is on the latest version.
PS C:\VSCode\Git\test> ls -la
Get-ChildItem : A parameter cannot be found that matches parameter
name 'la'.
At line:1 char:4
ls -la
~~~
CategoryInfo : InvalidArgument: (:) [Get-ChildItem],
ParameterBindingException
FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
CodePudding user response:
You are using Powershell on Windows. In Powershell on Windows, ls
is an alias for Get-ChildItem
. It is not the ls
command as provided on *nix.
Try the following command instead (as an equivalent for -a
):
Get-ChildItem -Attributes Normal, Directory, Hidden
(Note that this is not a git issue and not a Visual Studio Code issue.)