Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

git

github

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?

like image 250
Greg Avatar asked Jan 19 '26 00:01

Greg


1 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
like image 146
VonC Avatar answered Jan 21 '26 21:01

VonC