where is .git after git init

PS C:\Users\Mike\gitCode\gitTest1> git init
Initialized empty Git repository in C:/Users/Mike/gitCode/gitTest1/.git/
PS C:\Users\Mike\gitCode\gitTest1> dir

After dir command, I was expecting to see .git in this folder but I cannot see it here.

Question: Where is  .git file?

Is it a hidden file? If so, how can I make it visible so I can verify it is there?
LVL 34
Mike EghtebasDatabase and Application DeveloperAsked:
Who is Participating?

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

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.

Run the command dir /a (to show all files) and you should see the directory.


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
Mike EghtebasDatabase and Application DeveloperAuthor Commented:
Yes now I see it in command prompt. Do you by any chance you know what the same command in powershell is?
It's not as easy in Powershell unfortunately.  There is a (fairly old, now) blog post at http://blogs.msdn.com/b/powershell/archive/2009/03/13/dir-a-d.aspx which talks about how you can achieve roughly the same thing.  

Do you really need to use Powershell?
Mike EghtebasDatabase and Application DeveloperAuthor Commented:
I will take a look at it. I have windows 7 and powershell comes with it.

What do you suggest to use?

BTW, this is what I get with dr/w in ps:
PS C:\Users\Mike\gitCode\gitTest1> dir/w
The term 'dir/w' 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 wa
s included, verify that the path is correct and try again.
At line:1 char:6
+ dir/w <<<< 
    + CategoryInfo          : ObjectNotFound: (dir/w:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException

Open in new window

Why do you need to use Powershell?  What is it that you are trying to achieve by using it?  Do you simply need to test for the presence of the .git file?  I ask as there is most likely another way to achieve what you require...

<That's me out for the night, back tomorrow GMT>
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
Version Control

From novice to tech pro — start learning today.