GitHub folder has a white arrow on it and can't open

Viewed 3423

I want to have a server and client projects in the same repository.
After finishing backend I cloned a boilerplate(client) for the frontend from another repository. It is in the same level as src.
After pushing it to github I can see a white arrow in client folder, and can't open. Following the steps in this link I removed .git from client folder. But when I do

git add client

or

git add . 
git commit -m "commit"

it says that

husky > pre-commit (node v10.16.0)
i No staged files found.
On branch features
nothing to commit, working tree clean

What am I doing wrong?

2 Answers

You should first do:

git rm --cached client      # no trailing slash
git commit -m "remove client gitlink"

Than you can try and add client/ again, which, since it has no .git subfolder, should include its files content.

Note that, as illustrate in okonet/lint-staged issue 682 and its README

If you wish to use lint-staged in a multi package monorepo, it is recommended to install husky in the root package.json.

Check also your husky configuration, as in here.


I've ".gitignore" file in client folder. Can it affect on this issue?

If nothing is added, you can check if that is because of any ignore rule with:

git check-ignore -v -- client/aFile_that_should_be_added

People of the internet, I found a pretty simple solution to the problem. make sure you have a parent folder and all other folders need to be children inside that one. I was getting a white arrow on my folders and deleting the .git did not work, but putting a parent folder solved the problem in both my projects. Also for those having issues with uploading to github, here is the best article : https://www.tutsmake.com/upload-project-files-on-github-using-command-line/, make sure to change the URL in step 6.

Related