Need to collect all git configs, I use

find / -type f -name '.gitconfig'

But also I need find out all locals 'config' under hidden .git dirs

  • find does search in .foo – Mat Dec 23 '12 at 13:16
  • /some_name/.git/config - i have to find this config file – Yurij73 Dec 23 '12 at 14:18
  • Yes, I understand. And standard find will find it. – Mat Dec 23 '12 at 14:19
  • i tryed find / -type f -name 'config' -type d -name '.git' dont works :( – Yurij73 Dec 23 '12 at 14:21
  • What is your Linux distro and version of find? What you describe is unusual, people usually ask the opposite (e.g. here) – Mat Dec 23 '12 at 14:24

This command:

ls -a

should do it.

  • 3
    That just lists all files and directories within the current dirctory, including hidden ones. It does not help with the use of find (e.g. for a recursive search, for a specific filename) in any way. – Bob Dec 23 '12 at 15:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.