How to remove white icon appearing from the folder on github

Syed Mannawar Hussain
1 min readAug 30, 2020

It has took almost some time to resolve this as whenever i was pushing my repo onto the github through vscode there was white icon appearing across one of my folder and that folder was test folder in my case. That’s because when i was working on my code i inadvertently did “git init” inside a test folder and that created a nested git repository.

The workaround for that in vscode editor(as i was using that during testing) is as following:
1. Go to the settings of vscode and type "files.exclude" and make **/.git: false
2. Now you will be able to see all the .git folders inside your project, delete all of them and do git init within the root of the project and you are ready to push all your contents onto the github.
Happy coding and pushing :)

--

--