uniXVanXcel
uniXVanXcel

Reputation: 806

multiple git folders in parent and chidren folders

I have .git folders in parent and every children folders. Is that expected ?
Can I delete the .git folders from inside the children folders and only keep the one inside the parent folder?

I do not see the branches under the parent folder git branch -a returns blank I do see them in one of the children folders.

How do I clean this up and see all the local and remote branches from the parent folder ?

Can i just delete all the .git folders and git init inside the parent folder? Would I then see the branches?

Upvotes: 1

Views: 185

Answers (1)

VonC
VonC

Reputation: 1323175

I have .git folders in parent and every children folders. Is that expected ?

No: it means there was a git init . executed in each folders.

Can I just delete all the .git folders and git init inside the parent folder? Would I then see the branches?

You won't see any branch just after a git init ., you would still have to do a git add . and a git commit to see one branch (master or main)

Upvotes: 1

Related Questions