Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I unhide .git file by default?

Tags:

git

windows

When I use .git init .git file is always hidden by default, I have to always unselect the hidden option in properties. What is the way I can change this default setting?

Also when I del .git only the config,description and HEAD file are deleted,not the entire .git folder. How can I change this default setting so I don't have to always unhide after git init ?

I'm using windows 8.1

like image 670
Ajitesh Ranjan Avatar asked Nov 22 '25 03:11

Ajitesh Ranjan


1 Answers

core.hideDotFiles

(Windows-only) If true, mark newly-created directories and files whose name starts with a dot as hidden. If dotGitOnly, only the .git/ directory is hidden, but no other files starting with a dot. The default mode is dotGitOnly.

> git config --global core.hideDotFiles false
like image 161
diapir Avatar answered Nov 24 '25 22:11

diapir



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!