Answer a question

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?

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
Logo

ModelScope旨在打造下一代开源的模型即服务共享平台,为泛AI开发者提供灵活、易用、低成本的一站式模型服务产品,让模型应用更简单!

更多推荐