'ls' not working after a git init

Hi All,

I'm using visual studio code and using the integrated terminal.
When I create a directory and then type "git init", my new directory gets initialized.
But when I type "ls" to list the contents, I get the following error
" 'ls' is not recognized as an internal or external command, operable program or batch file. "

Am I missing something?  Thanks!
LVL 5
IsaacSharePoint Client Side DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David Johnson, CD, MVPOwnerCommented:
ls is a unix command use DIR instead
0
IsaacSharePoint Client Side DeveloperAuthor Commented:
but I'm able to use that command in my bash terminal on my windows machine.
I'm just trying to use in Visual Studio Code integrated terminal on the same machine
0
David Johnson, CD, MVPOwnerCommented:
then you'd have to load bash first since the default is to use powershell cmd prompt, you can change the defaults to use bash as your command interpreter by following the steps @ https://stackoverflow.com/questions/42606837/how-to-use-bash-on-windows-from-visual-studio-code-integrated-terminal
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
IsaacSharePoint Client Side DeveloperAuthor Commented:
Worked like a charm.  Thanks!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Git

From novice to tech pro — start learning today.